diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-01-09 20:57:37 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-01-09 20:57:37 -0500 |
commit | 46b0b4bc9fcbe56cb5d8782703f327366455bd93 (patch) | |
tree | 0a60f1ff1b2b42ce7cf1becd74c6f37ef37161ea /coverage/config.py | |
parent | 488205aed767918e92d378d9483f7b471bf7aefd (diff) | |
download | python-coveragepy-46b0b4bc9fcbe56cb5d8782703f327366455bd93.tar.gz |
XML output file is configurable in .rc file.
Diffstat (limited to 'coverage/config.py')
-rw-r--r-- | coverage/config.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/coverage/config.py b/coverage/config.py index 9307fad..8f508f2 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -29,6 +29,9 @@ class CoverageConfig(object): # Defaults for [html] self.html_dir = "htmlcov" + # Defaults for [xml] + self.xml_output = "coverage.xml" + def from_environment(self, env_var): """Read configuration from the `env_var` environment variable.""" # Timidity: for nose users, read an environment variable. This is a @@ -86,3 +89,7 @@ class CoverageConfig(object): # [html] if cp.has_option('html', 'directory'): self.html_dir = cp.get('html', 'directory') + + # [xml] + if cp.has_option('xml', 'output'): + self.xml_output = cp.get('xml', 'output') |