ci: use pytest flags --color --exit-first --verbose

This commit is contained in:
Erik Sundell
2021-10-16 16:12:30 +02:00
parent 08544bc369
commit 6daee0d643
3 changed files with 3 additions and 3 deletions

View File

@@ -115,7 +115,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 -v {}'.format(
'/opt/tljh/hub/bin/python3 -m pytest --verbose --maxfail=2 --color=yes {}'.format(
' '.join([os.path.join('/srv/src/integration-tests/', f) for f in test_files])
)
)

View File

@@ -23,7 +23,7 @@ jobs:
- name: Run bootstrap checks
run: |
python3 -m pip install pytest
pytest integration-tests/test_bootstrap.py -s
pytest --verbose --maxfail=2 --color=yes --capture=no integration-tests/test_bootstrap.py
- name: Run basic tests
run: |

View File

@@ -34,7 +34,7 @@ jobs:
- name: Run unit tests
run: |
pytest --cov=tljh tests/
pytest --verbose --maxfail=2 --color=yes --cov=tljh tests/
- name: Upload code coverage stats
run: |