Skip to content

Feature write to file#250

Merged
carlio merged 5 commits into
prospector-dev:developfrom
vintasoftware:feature-write-to-file
Jul 22, 2018
Merged

Feature write to file#250
carlio merged 5 commits into
prospector-dev:developfrom
vintasoftware:feature-write-to-file

Conversation

@chocoelho

Copy link
Copy Markdown
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

dmashine commented Jun 1, 2018

Copy link
Copy Markdown

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

@chocoelho

Copy link
Copy Markdown
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