From 1bec288c62eca5f608e047c009730a43da7df725 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 9 Jan 2010 20:57:37 -0500 Subject: XML output file is configurable in .rc file. --HG-- rename : test/farm/html/run_a_xml.py => test/farm/html/run_a_xml_1.py --- coverage/config.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'coverage/config.py') diff --git a/coverage/config.py b/coverage/config.py index 9307fad7..8f508f28 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') -- cgit v1.2.1