summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rose <chrisros@amazon.com>2014-02-15 11:19:15 -0800
committerChris Rose <chrisros@amazon.com>2014-02-15 11:28:05 -0800
commitfb3f02d3edb3320c2b1c7a34025491fae4e3aa40 (patch)
tree3f3a8baa6b10396d22d20f54604f401c10b6b804
parent7a8a17e2b24a7feac0b3a660cafb5d01e1838872 (diff)
downloadpython-coveragepy-git-fb3f02d3edb3320c2b1c7a34025491fae4e3aa40.tar.gz
Add tests for issue #285
-rw-r--r--tests/test_xml.py7
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")