Skip to content

Why does my CI job hang on the Testomatio reporter finish step?

The CI job hangs due to a coding error in your test process, specifically using ‘catch’ instead of ‘finally’, which prevents termination.

  1. Check the Test Command: Ensure that the test command finishes properly. The reporter waits for the test runner process to exit before it can finish the run.
  2. Review Your Code: Look for any coding errors, such as using ‘catch’ instead of ‘finally’, which might prevent the test process from terminating.
  3. Modify the Code: Replace ‘catch’ with ‘finally’ in your test process to ensure proper termination.
  4. Rerun the CI Job: Execute the CI job again to verify that the issue is resolved and the job completes successfully.
  • If the job hangs and there is no “Runner exited with …” log, it indicates that the test command has not finished yet. The reporter is still waiting for the test runner process to exit.
  • Ensure that the child test process runs with TESTOMATIO_PROCEED=true so it does not finish the run by itself.