flake8-formatter-junit-xml icon indicating copy to clipboard operation
flake8-formatter-junit-xml copied to clipboard

Screen Display and File Output

Open cancan101 opened this issue 7 years ago • 4 comments

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.

cancan101 avatar Jul 31 '18 22:07 cancan101

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

astj avatar Aug 03 '18 00:08 astj

Any update on this ?

rubber-ant avatar Jan 31 '21 23:01 rubber-ant

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.

ojdo avatar Mar 17 '21 12:03 ojdo

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

devmcp avatar Jan 03 '23 10:01 devmcp