Skip to content

Allow to specify Coverage XML output file #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
blueyed opened this issue Oct 4, 2015 · 4 comments
Closed

Allow to specify Coverage XML output file #97

blueyed opened this issue Oct 4, 2015 · 4 comments

Comments

@blueyed
Copy link
Contributor

blueyed commented Oct 4, 2015

I have not looked to deep, but only found this:

src/pytest_cov/engine.py
108: stream.write('Coverage XML written to file %s\n' % self.cov.config.xml_output)

Therefore it appears that the output path can only be configured through the .coveragerc file.

It would be nice if this could be passed in through an option to pytest-cov, e.g. --cov-xml-output=coverage2.xml.

@ionelmc
Copy link
Member

ionelmc commented Oct 4, 2015

That would overlap a bit with the --cov-report=xml option. Maybe --cov-report=xml should be implied if you use --cov-xml-output=coverage2.xml.

What if we'd be allowed to use --cov-report=xml:coverage2.xml (or similar)?

@The-Compiler
Copy link
Member

What if we'd be allowed to use --cov-report=xml:coverage2.xml (or similar)?

That sounds good, and something similar could also be done for --cov-report=html:htmlcov2

@blueyed
Copy link
Contributor Author

blueyed commented Oct 4, 2015

--cov-report=xml:coverage2.xml

👍

@ionelmc ionelmc added this to the v2.6 milestone Oct 28, 2017
@ionelmc
Copy link
Member

ionelmc commented Oct 28, 2017

Actually this was fixed in #113.

@ionelmc ionelmc closed this as completed Oct 28, 2017
@ionelmc ionelmc removed this from the v2.6 milestone Oct 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants