ci: make pytest report time per test

This commit is contained in:
Erik Sundell
2021-10-18 02:05:44 +02:00
parent 777c78e0fe
commit a4768226ee
3 changed files with 3 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ def run_test(image_name, test_name, bootstrap_pip_spec, test_files, upgrade, ins
)
run_container_command(
test_name,
'/opt/tljh/hub/bin/python3 -m pytest --verbose --maxfail=2 --color=yes --capture=no {}'.format(
'/opt/tljh/hub/bin/python3 -m pytest --verbose --maxfail=2 --color=yes --durations=10 --capture=no {}'.format(
' '.join([os.path.join('/srv/src/integration-tests/', f) for f in test_files])
)
)

View File

@@ -112,7 +112,7 @@ jobs:
- name: Run bootstrap tests
run: |
pytest --verbose --maxfail=2 --color=yes --capture=no \
pytest --verbose --maxfail=2 --color=yes --durations=10 --capture=no \
integration-tests/test_bootstrap.py
- name: Run basic tests

View File

@@ -90,7 +90,7 @@ jobs:
pip freeze
- name: Run unit tests
run: pytest --verbose --maxfail=2 --color=yes --cov=tljh tests/
run: pytest --verbose --maxfail=2 --color=yes --durations=10 --cov=tljh tests/
- name: Upload code coverage stats
run: codecov