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

JUnit XML output format for CI integration #104

Open
derFunk opened this issue Feb 17, 2017 · 2 comments
Open

JUnit XML output format for CI integration #104

derFunk opened this issue Feb 17, 2017 · 2 comments

Comments

@derFunk
Copy link
Contributor

derFunk commented Feb 17, 2017

Hi,

CI systems like Jenkins can publish JUnit XML results out of the box.
It would be great if we could have a exporter for that format.

For a JUnit XML format specification see here: https://github.com/windyroad/JUnit-Schema.

Example how php-cs-fixer exports to JUnit format: https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/src/Report/JunitReporter.php

@derFunk
Copy link
Contributor Author

derFunk commented Feb 27, 2017

I started working on it here and it basically does its job already. https://github.com/derFunk/iniscan/blob/junit-xml-output-format/src/Psecio/Iniscan/Command/ScanCommand/Output/Junit.php

The only reason why I don't want to create a PR yet already is that there seem to be some unresolved issues regarding PHP 7: #101, which should be resolved, otherwise JUnit will break the build because of false positives. ( @enygma ? ).

image

@enygma
Copy link
Member

enygma commented Mar 12, 2017

Hi @derFunk, I've left a comment in #101 about trying to reproduce the issue. I'm having problems on my side doing it so it makes it harder to fix. This looks great and I'd love to get it in if you're comfortable making a PR for it to review.

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

2 participants