Skip to content

Commit

Permalink
stop testing after first failure
Browse files Browse the repository at this point in the history
  • Loading branch information
PeopleMakeCulture committed Jan 31, 2024
1 parent 406cccc commit 1d30c28
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nmdc_runtime/test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ RUN chmod +x wait-for-it.sh
# Best practices: Prepare for C crashes.
ENV PYTHONFAULTHANDLER=1

# disable stop after first failure to run all tests
ENTRYPOINT [ "./wait-for-it.sh", "fastapi:8000" , "--strict" , "--timeout=300" , "--" , "pytest"]
#ENTRYPOINT [ "./wait-for-it.sh", "fastapi:8000" , "--strict" , "--timeout=300" , "--" , "pytest", "-x"]
# uncomment line below to run all tests
# ENTRYPOINT [ "./wait-for-it.sh", "fastapi:8000" , "--strict" , "--timeout=300" , "--" , "pytest"]

# uncomment line below to stop after first test failure:
# https://docs.pytest.org/en/6.2.x/usage.html#stopping-after-the-first-or-n-failures
ENTRYPOINT [ "./wait-for-it.sh", "fastapi:8000" , "--strict" , "--timeout=300" , "--" , "pytest", "-x"]

0 comments on commit 1d30c28

Please sign in to comment.