summaryrefslogtreecommitdiff
path: root/tests/test_xml.py
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:19:15 -0800
commitf4fb2d573e4e7083b4801933f8f99c7e02d9272a (patch)
tree90609d2a058ab32caa4d0e20e66424861cdebfc1 /tests/test_xml.py
parentb84dd85957bff7422c7b0a54c7836c091018ec16 (diff)
downloadpython-coveragepy-f4fb2d573e4e7083b4801933f8f99c7e02d9272a.tar.gz
Add tests for issue #285
Diffstat (limited to 'tests/test_xml.py')
-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 0801bad..37ada3c 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")