simplify testing instructions

This commit is contained in:
Maximilian Hils 2019-04-02 16:29:14 +02:00 committed by GitHub
parent 9b7c2566d3
commit 6eb47a5fa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -106,13 +106,7 @@ For speedier testing, we recommend you run `pytest`_ directly on individual test
.. code-block:: bash
cd test/mitmproxy/addons
pytest --cov mitmproxy.addons.anticache --looponfail test_anticache.py
To generate terminal report along with missing line numbers of individual test files or folders:
.. code-block:: bash
pytest --cov-report term-missing --cov mitmproxy.flowfilter --looponfail test_flowfilter.py
pytest --cov mitmproxy.addons.anticache --cov-report term-missing --looponfail test_anticache.py
As pytest does not check the code style, you probably want to run ``tox -e lint`` before committing your changes.