Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Run all tests:
# tox
# Run all tests in one file in all test environments:
# tox -- tests/test_api.py
# Run one test in all test environments:
# tox -- tests/test_api.py::test_api
# Run all tests in one file in one test environment:
# tox -e py39 -- tests/test_api.py
# Run one test in one test environment:
# tox -e py39 -- tests/test_api.py::test_api

[flake8]
exclude=connexion/__init__.py
rst-roles=class,mod,obj
Expand All @@ -21,6 +32,9 @@ python =
3.11: py311-pypi,pre-commit
3.12: py312-pypi

[pytest]
testpaths = tests

[testenv]
setenv=PYTHONPATH = {toxinidir}:{toxinidir}
deps=
Expand All @@ -34,7 +48,7 @@ commands=
poetry lock
poetry install --all-extras --with tests
poetry show
poetry run python -m pytest tests --cov connexion --cov-report term-missing
poetry run python -m pytest --cov connexion --cov-report term-missing {posargs}
min: mv -f pyproject.toml.bak pyproject.toml

[testenv:pre-commit]
Expand Down