summaryrefslogtreecommitdiff
path: root/functional_tests
diff options
context:
space:
mode:
authorkumar <kumar.mcmillan@gmail.com>2011-07-30 18:46:35 -0500
committerkumar <kumar.mcmillan@gmail.com>2011-07-30 18:46:35 -0500
commit136d969b648326a00726d1d3ebfc231757849d76 (patch)
treed2669cf48ec01ba24c57613f7642b8e05a8cf761 /functional_tests
parente5a58e6ac194b0a3fc82fa58ad234992dc4a6a21 (diff)
downloadnose-136d969b648326a00726d1d3ebfc231757849d76.tar.gz
.coverage file is now saved again (#439). Also bump to 1.1.2release_1.1.2
Diffstat (limited to 'functional_tests')
-rw-r--r--functional_tests/doc_tests/test_coverage_html/coverage_html.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/functional_tests/doc_tests/test_coverage_html/coverage_html.rst b/functional_tests/doc_tests/test_coverage_html/coverage_html.rst
index 89c4bd5..95f9e8a 100644
--- a/functional_tests/doc_tests/test_coverage_html/coverage_html.rst
+++ b/functional_tests/doc_tests/test_coverage_html/coverage_html.rst
@@ -14,12 +14,16 @@ code coverage, the coverage plugin supports basic HTML coverage output.
>>> import os
>>> support = os.path.join(os.path.dirname(__file__), 'support')
>>> cover_html_dir = os.path.join(support, 'cover')
+ >>> cover_file = os.path.join(os.getcwd(), '.coverage')
+ >>> if os.path.exists(cover_file):
+ ... os.unlink(cover_file)
+ ...
The console coverage output is printed, as normal.
- >>> cover_html_dir = os.path.join(support, 'cover')
>>> from nose.plugins.cover import Coverage
+ >>> cover_html_dir = os.path.join(support, 'cover')
>>> run(argv=[__file__, '-v', '--with-coverage', '--cover-package=blah',
... '--cover-html', '--cover-html-dir=' + cover_html_dir,
... support, ],
@@ -43,6 +47,8 @@ covered and which are not. There is an example of this HTML output in the
`coverage.py`_ docs.
.. hide this from the actual documentation:
+ >>> os.path.exists(cover_file)
+ True
>>> os.path.exists(os.path.join(cover_html_dir, 'index.html'))
True
>>> os.path.exists(os.path.join(cover_html_dir, 'blah.html'))