diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-29 08:30:26 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-29 08:30:26 -0400 |
commit | 353dff3141e8e0ea3d92ef63f74bcd3729febb42 (patch) | |
tree | c7d28c8a6822a2b899957407dd5c77ccae7ea47d /tests/test_html.py | |
parent | 3044844aec378123651e492095073345521989f4 (diff) | |
download | python-coveragepy-git-353dff3141e8e0ea3d92ef63f74bcd3729febb42.tar.gz |
Accommodate strange ShiningPanda logic if we are running under Jenkins. #404
Diffstat (limited to 'tests/test_html.py')
-rw-r--r-- | tests/test_html.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_html.py b/tests/test_html.py index a852cbe9..a30d0e39 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -397,6 +397,14 @@ class HtmlTest(HtmlTestHelpers, CoverageTest): self.assert_exists("htmlcov/index.html") self.assert_exists("htmlcov/other_py.html") + def test_shining_panda_fix(self): + # The ShiningPanda plugin looks for "status.dat" to find HTML reports. + # Accomodate them, but only if we are running under Jenkins. + self.set_environ("JENKINS_URL", "Something or other") + self.create_initial_files() + self.run_coverage() + self.assert_exists("htmlcov/status.dat") + class HtmlStaticFileTest(CoverageTest): """Tests of the static file copying for the HTML report.""" |