From e95008266c7892faf92d2925a43679b9d12b0b06 Mon Sep 17 00:00:00 2001 From: Montgomery Alban Date: Sun, 4 Feb 2024 01:15:13 +0000 Subject: [PATCH] Add test duration information to pytest commands. --- .github/workflows/ci-base-tests-linux.yml | 1 + Makefile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-base-tests-linux.yml b/.github/workflows/ci-base-tests-linux.yml index fcabe007fd..7d339cd519 100644 --- a/.github/workflows/ci-base-tests-linux.yml +++ b/.github/workflows/ci-base-tests-linux.yml @@ -56,6 +56,7 @@ jobs: --doctest-modules \ --forked \ --dist=no \ + --durations=10 \ -n auto \ --ignore-glob="**/ros.py" \ --ignore-glob="**/waymo_map.py" \ diff --git a/Makefile b/Makefile index 2d2a29888c..d647ddefff 100644 --- a/Makefile +++ b/Makefile @@ -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 \ @@ -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 @@ -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