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