From: Ben Darnell Date: Sat, 21 Jan 2012 22:09:18 +0000 (-0800) Subject: Add .coveragerc for test coverage reporting. X-Git-Tag: v2.2.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35139ff82cdb24bf9978269afe99e6ccff993631;p=thirdparty%2Ftornado.git Add .coveragerc for test coverage reporting. Closes #439. --- diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..2db6c2f51 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,18 @@ +# Test coverage configuration. +# Usage: +# pip install coverage +# coverage erase # clears previous data if any +# coverage run -m tornado.test.runtests +# coverage report # prints to stdout +# coverage html # creates ./htmlcov/*.html including annotated source +[run] +branch = true +source = tornado +omit = + tornado/platform/* + tornado/test/* + */_auto2to3* + +[report] +# Ignore missing source files, i.e. fake template-generated "files" +ignore_errors = true diff --git a/.gitignore b/.gitignore index 857178931..f127f38b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,12 @@ *.pyc *.so *~ -build -dist/ +build/ +/dist/ MANIFEST -tornado.egg-info +/tornado.egg-info/ _auto2to3* -.tox +.tox/ .vagrant +/.coverage +/htmlcov/ \ No newline at end of file