mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
tests: Exclude docker tests from regular pytest runs
- Add tests/docker to norecursedirs in pyproject.toml to prevent docker tests from running during regular test suite (they require docker and the requests library) - Add -p no:cov to docker integration workflow to disable coverage plugin since pytest-cov is not installed in that environment
This commit is contained in:
parent
ecc471f3b4
commit
99ffa0cc6b
2
.github/workflows/docker-integration.yml
vendored
2
.github/workflows/docker-integration.yml
vendored
@ -42,4 +42,4 @@ jobs:
|
||||
|
||||
- name: Run uWSGI integration tests
|
||||
run: |
|
||||
pytest tests/docker/uwsgi/ -v --tb=short
|
||||
pytest tests/docker/uwsgi/ -v --tb=short -p no:cov
|
||||
|
||||
@ -71,7 +71,7 @@ main = "gunicorn.app.pasterapp:serve"
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
# # can override these: python -m pytest --override-ini="addopts="
|
||||
norecursedirs = ["examples", "lib", "local", "src"]
|
||||
norecursedirs = ["examples", "lib", "local", "src", "tests/docker"]
|
||||
testpaths = ["tests/"]
|
||||
addopts = "--assert=plain --cov=gunicorn --cov-report=xml"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user