diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-21 18:31:30 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-21 18:31:30 +0200 |
commit | bba5ec7144f0e08d4b26bad2987c6e7f0871b83d (patch) | |
tree | e462047f6169bd64b6bab99b8d8259bb0697bcf9 /docs/dev/testing.rst | |
parent | 88375ad64aa2f53b9447df1ccd7aa7ee77cb04ef (diff) | |
download | mitmproxy-bba5ec7144f0e08d4b26bad2987c6e7f0871b83d.tar.gz mitmproxy-bba5ec7144f0e08d4b26bad2987c6e7f0871b83d.tar.bz2 mitmproxy-bba5ec7144f0e08d4b26bad2987c6e7f0871b83d.zip |
experimental: run tests using py.tests
Diffstat (limited to 'docs/dev/testing.rst')
-rw-r--r-- | docs/dev/testing.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/dev/testing.rst b/docs/dev/testing.rst index 36c85426..d7554954 100644 --- a/docs/dev/testing.rst +++ b/docs/dev/testing.rst @@ -7,10 +7,10 @@ All the mitmproxy projects strive to maintain 100% code coverage. In general, patches and pull requests will be declined unless they're accompanied by a suitable extension to the test suite. -Our tests are written for the nose_ test framework. +Our tests are written for the `py.test`_ or nose_ test frameworks. At the point where you send your pull request, a command like this: ->>> nosetests --with-cov --cov-report term-missing ./test +>>> py.test -n 4 --cov libmproxy Should give output something like this: @@ -44,3 +44,4 @@ excluded from coverage analysis either in the **.coveragerc** file, or using these measures as sparingly as possible. .. _nose: https://nose.readthedocs.org/en/latest/ +.. _py.test: https://pytest.org/ |