diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-01-22 16:01:31 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-01-22 16:01:31 +0100 |
commit | 94e530ec4fe4378f89eea44796f31847da52ddf2 (patch) | |
tree | e8f30dc5fefd0654e4d700a01e4364f0ea25b8a0 /doc-src/dev/testing.html | |
parent | 1786d778194b543ae77468a716c9e15caf247180 (diff) | |
parent | 9044b8b8f534debf84de553bf1e57cd91a08ee91 (diff) | |
download | mitmproxy-94e530ec4fe4378f89eea44796f31847da52ddf2.tar.gz mitmproxy-94e530ec4fe4378f89eea44796f31847da52ddf2.tar.bz2 mitmproxy-94e530ec4fe4378f89eea44796f31847da52ddf2.zip |
merge master
Diffstat (limited to 'doc-src/dev/testing.html')
-rw-r--r-- | doc-src/dev/testing.html | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/doc-src/dev/testing.html b/doc-src/dev/testing.html deleted file mode 100644 index 4cee29e8..00000000 --- a/doc-src/dev/testing.html +++ /dev/null @@ -1,43 +0,0 @@ - -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](https://nose.readthedocs.org/en/latest/). -At the point where you send your pull request, a command like this: - -<pre class="terminal"> -> nosetests --with-cov --cov-report term-missing ./test -</pre> - -Should give output something like this: - -<pre class="terminal"> -> ---------- coverage: platform darwin, python 2.7.2-final-0 -- -> Name Stmts Miss Cover Missing -> ---------------------------------------------------- -> libmproxy/__init__ 0 0 100% -> libmproxy/app 4 0 100% -> libmproxy/cmdline 100 0 100% -> libmproxy/controller 69 0 100% -> libmproxy/dump 150 0 100% -> libmproxy/encoding 39 0 100% -> libmproxy/filt 201 0 100% -> libmproxy/flow 891 0 100% -> libmproxy/proxy 427 0 100% -> libmproxy/script 27 0 100% -> libmproxy/utils 133 0 100% -> libmproxy/version 4 0 100% -> ---------------------------------------------------- -> TOTAL 2045 0 100% -> ---------------------------------------------------- -> Ran 251 tests in 11.864s -</pre> - - -There are exceptions to the coverage requirement - for instance, much of the -console interface code can't sensibly be unit tested. These portions are -excluded from coverage analysis either in the **.coveragerc** file, or using -**#pragma no-cover** directives. To keep our coverage analysis relevant, we use -these measures as sparingly as possible. - |