From 9b7c2566d3e00e0bc4e4d2a21bb8d63a2b28d043 Mon Sep 17 00:00:00 2001 From: Rajat Gupta <35985127+rjt-gupta@users.noreply.github.com> Date: Thu, 28 Feb 2019 23:59:50 +0530 Subject: Update README.rst --- README.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.rst') diff --git a/README.rst b/README.rst index d7100374..2804b1db 100644 --- a/README.rst +++ b/README.rst @@ -107,6 +107,12 @@ For speedier testing, we recommend you run `pytest`_ directly on individual test 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 As pytest does not check the code style, you probably want to run ``tox -e lint`` before committing your changes. -- cgit v1.2.3 From 6eb47a5fa5f848dd8356d0c64f3165c3e73fe333 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 2 Apr 2019 16:29:14 +0200 Subject: simplify testing instructions --- README.rst | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index 2804b1db..bccc6c5b 100644 --- a/README.rst +++ b/README.rst @@ -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. -- cgit v1.2.3