diff options
author | Ned Batchelder <nedbat@gmail.com> | 2014-03-01 06:30:37 -0500 |
---|---|---|
committer | Ned Batchelder <nedbat@gmail.com> | 2014-03-01 06:30:37 -0500 |
commit | 507471475e468322d76e668e8f1a7eb443aab594 (patch) | |
tree | f05e4f0d01425d8bf791f1ce7a437742ce85ba9b /tests/test_xml.py | |
parent | ce11ef95ffa9a4d5b2422dfe1a65fabda695bcb2 (diff) | |
parent | 4e1a87c430f9776fa0d4f0a1655f052a097859cd (diff) | |
download | python-coveragepy-git-507471475e468322d76e668e8f1a7eb443aab594.tar.gz |
Merged in offbyone/coverage.py (pull request #31)
Resolve #285 - precreate the XML report's output directory if it does
Diffstat (limited to 'tests/test_xml.py')
-rw-r--r-- | tests/test_xml.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_xml.py b/tests/test_xml.py index 0801bad3..37ada3cb 100644 --- a/tests/test_xml.py +++ b/tests/test_xml.py @@ -26,6 +26,13 @@ class XmlReportTest(CoverageTest): self.assert_doesnt_exist("coverage.xml") self.assert_exists("put_it_there.xml") + def test_config_file_directory_does_not_exist(self): + self.run_mycode() + self.run_command("coverage xml -o nonexistent/put_it_there.xml") + self.assert_doesnt_exist("coverage.xml") + self.assert_doesnt_exist("put_it_there.xml") + self.assert_exists("nonexistent/put_it_there.xml") + def test_config_affects_xml_placement(self): self.run_mycode() self.make_file(".coveragerc", "[xml]\noutput = xml.out\n") |