Skip to content

Commit

Permalink
restore test.Dockerfile to stop after one failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
PeopleMakeCulture committed Jan 31, 2024
1 parent f8e975e commit 5bc32d6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nmdc_runtime/test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ 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 5bc32d6

Please sign in to comment.