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

Screen Display and File Output #10

Open
cancan101 opened this issue Jul 31, 2018 · 4 comments
Open

Screen Display and File Output #10

cancan101 opened this issue Jul 31, 2018 · 4 comments

Comments

@cancan101
Copy link

Is there any way with this plugin to output both to a file (using the formatter) and the screen using the default formatting? The --tee option outputs to both file and screen however xml is written to the screen.

@astj
Copy link
Owner

astj commented Aug 3, 2018

Currently no.
But once I tried (and perfectly forgot about it), so I'll check and consider it agin.

@rubber-ant
Copy link

Any update on this ?

@ojdo
Copy link

ojdo commented Mar 17, 2021

I first thought that I had the same request, having added format = junit-xml to my project's setup.cfg. But then I realised that this option could instead just be added when calling it within my CI server's context, so I moved it to (in my case) the invocation within a .gitlab-ci.yml file:

    script:
    - flake8 --format junit-xml > flake8-report.xml

In the terminal, flake8 remains default format, CI gets nice test reports.

@devmcp
Copy link

devmcp commented Jan 3, 2023

+1 for this. I'd like to be able to write to an xml file and print the Default content to screen

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

5 participants