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

Feature write to file #250

Merged
merged 5 commits into from
Jul 22, 2018

Conversation

chocoelho
Copy link
Contributor

Resolves #246.

As of now, there's no way to way to redirect output to files. This implementation was inspired on how it was described on #246 and how pytest-cov redirects its output. It's also possible to set multiple outputs for the same export, so if one runs prospector -o xunit:output_file.xml:/home/xpto/output_file.xml it'll write to both relative output_file.xml and absolute /home/xpto/output_file.xml. Multiple reports are also supported, so prospector -o xunit:output_file.xml -o grouped will write XUnit format to output to relative output_file.xml and grouped format on console.

@dmashine
Copy link

dmashine commented Jun 1, 2018

@chocoelho please can you merge it to base branch? I like this feature very much

@chocoelho
Copy link
Contributor Author

I'll try to resolve this and a couple of other PRs in the next couple of days. They're just missing some test cases and, probably, a few other adjustments.

@carlio carlio merged commit 232db3d into prospector-dev:develop Jul 22, 2018
@chocoelho chocoelho deleted the feature-write-to-file branch July 24, 2018 23:00
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

Successfully merging this pull request may close these issues.

3 participants