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 | 08fbf4359d717375833f6c20cf6a334080235b66 (patch) | |
tree | f61bf4905fe58f7e7819327b71f3a31de0802d3c /tests/test_html.py | |
parent | df2fc59883817747fd03ea3cd1897d4fb5b21b07 (diff) | |
download | python-coveragepy-08fbf4359d717375833f6c20cf6a334080235b66.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 a852cbe..a30d0e3 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.""" |