Skip to content

Commit

Permalink
Throw on test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed Dec 24, 2023
1 parent ad7ff77 commit 9046ea9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def accept( # pylint: disable=too-many-arguments
pass
finally:
app_process.terminate()
raise RuntimeError("tests failed")


@task(pre=[_ensure_test_db])
Expand Down Expand Up @@ -181,6 +182,7 @@ def playwright(c):
pass
finally:
app_process.terminate()
raise RuntimeError("tests failed")


@task(pre=[_ensure_test_db], help={"html": "open html report"})
Expand Down

0 comments on commit 9046ea9

Please sign in to comment.