From 353dff3141e8e0ea3d92ef63f74bcd3729febb42 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 29 Aug 2015 08:30:26 -0400 Subject: Accommodate strange ShiningPanda logic if we are running under Jenkins. #404 --- tests/test_html.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_html.py') 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.""" -- cgit v1.2.1