Project

General

Profile

Actions

action #176823

closed

post_run_hook is not always executed despite documentation saying so size:S

Added by jbaier_cz 19 days ago. Updated 1 day ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2025-02-09
Due date:
% Done:

0%

Estimated time:

Description

Observation

See documentation for post_run_hook(https://open.qa/docs/#_post_run_hook):

It is called after run() regardless of the result of the test run.

This is not correct. The hook will not run if the test fails, see reproducer where only post_fail_hook is executed.

Acceptance criteria

  • AC1: post_run_hook documentation matches the behavior

Suggestions

  • Either both hooks are executed or the documentation mentions that post_run_hook will not be called in some cases.
  • Investigate if this is expected behavior - apparently this has not changed recently
  • Check whether there was a reason for this. Maybe we actually want in case of a failure only the post_fail_hook. So perhaps it is best to just update the documentation (would be ok with @jbaier_cz who created the ticket for its own distri).
  • Related: #13868

Files

Actions

Also available in: Atom PDF