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])
)
)