Skip to content

Commit

Permalink
Add test duration information to pytest commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Feb 4, 2024
1 parent 641601f commit e950082
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci-base-tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
--doctest-modules \
--forked \
--dist=no \
--durations=10 \
-n auto \
--ignore-glob="**/ros.py" \
--ignore-glob="**/waymo_map.py" \
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ test: build-all-scenarios
--doctest-modules \
--forked \
--dist=loadscope \
--durations=0 \
-n `expr \( \`nproc\` \/ 2 \& \`nproc\` \> 3 \) \| 2` \
--nb-exec-timeout 65536 \
./examples/tests ./smarts/env ./envision ./smarts/core ./smarts/sstudio \
Expand Down Expand Up @@ -48,6 +49,7 @@ test-long-determinism:
scl scenario build --clean scenarios/sumo/minicity
PYTHONHASHSEED=42 pytest -v \
--forked \
--durations=0 \
./smarts/env/tests/test_determinism.py::test_long_determinism

.PHONY: test-memory-growth
Expand All @@ -63,7 +65,7 @@ test-memory-growth: build-all-scenarios

.PHONY: benchmark
benchmark: build-all-scenarios
pytest -v ./smarts/env/tests/test_benchmark.py
pytest -v --durations=0 ./smarts/env/tests/test_benchmark.py

.PHONY: test-zoo
test-zoo: build-all-scenarios
Expand Down

0 comments on commit e950082

Please sign in to comment.