Skip to content
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

add command line option to write to file #246

Closed
dmashine opened this issue Mar 31, 2018 · 3 comments
Closed

add command line option to write to file #246

dmashine opened this issue Mar 31, 2018 · 3 comments

Comments

@dmashine
Copy link

dmashine commented Mar 31, 2018

def print_messages(self, write_to=None):
   write_to = write_to or sys.stdout

write_to is already defined. Please add a command line option (like prospector --write-to=file.xml) so output will be in this file.

it is needed, because tox dont support pipeline redirects and someone may want to output file in xunit format.

@tysonclugg
Copy link

I'd like for prospector to be able to write xunit output to a file, in addition to showing grouped output on stdout. Perhaps with invocation like this:

prospector -o xunit:reports/prospector.xml -o grouped

@chocoelho
Copy link
Contributor

@tysonclugg you mean just like pytest-cov does? That'd be great.

@carlio
Copy link
Member

carlio commented Jul 23, 2018

That PR is merged now so should be working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants