mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
ci: use pytest flags --color --exit-first --verbose
This commit is contained in:
2
.github/integration-test.py
vendored
2
.github/integration-test.py
vendored
@@ -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])
|
||||
)
|
||||
)
|
||||
|
||||
2
.github/workflows/integration-test.yaml
vendored
2
.github/workflows/integration-test.yaml
vendored
@@ -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: |
|
||||
|
||||
2
.github/workflows/unit-test.yaml
vendored
2
.github/workflows/unit-test.yaml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user