Skip to content

Commit

Permalink
Merge pull request #570 from jugmac00/update-running-tests
Browse files Browse the repository at this point in the history
Update documentation for `Running tests`
  • Loading branch information
leplatrem authored Jan 25, 2022
2 parents 6826460 + e100a5c commit 15dfca9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions docs/source/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ just setup ``tox`` and run it inside the toplevel project directory::

To run a single test inside a specific Python environment, do e.g.::

tox -e py27 tests/test_validation.py:TestServiceDefinition.test_content_type_missing

or::

tox -e py27 tests.test_validation:TestServiceDefinition.test_content_type_missing
tox -e py39 tests/test_validation.py::TestServiceDefinition::test_content_type_missing


Testing cornice services
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ skip_missing_interpreters = True
[testenv]
commands =
python --version
pytest tests --cov-report term-missing --cov-fail-under 100 --cov cornice {posargs}
pytest {posargs: --cov-report term-missing --cov-fail-under 100 --cov cornice}
deps =
-rtests/requirements.txt
install_command = pip install --pre {opts} {packages}
Expand All @@ -19,7 +19,7 @@ deps =
install_command = pip install --pre {opts} {packages}
commands =
python --version
py.test {posargs}
pytest {posargs}

[testenv:flake8]
commands = flake8 cornice
Expand Down

0 comments on commit 15dfca9

Please sign in to comment.