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
Add JUnit reporter #586
base: main
Are you sure you want to change the base?
Add JUnit reporter #586
Conversation
</testsuite> | ||
<testsuite name="Unlisted dependencies" tests="2" failures="2"> | ||
<testcase tests="1" failures="1" name="Unlisted dependencies" classname="src/index.ts"> | ||
<failure message="Unlisted dependencies - unresolved" type="Unlisted dependencies">Unlisted dependencies: "unresolved" inside src/index.ts</failure> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know anything about this format, but will each issue be in its own node, or should it be? This example gives me the impression that all unlisted dependencies will end up in this single node? Or will each one have the "Unlisted dependencies: " prefix?
Maybe you could show an example of how it looks like in the CI environment (eg. Bitbucket)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing. I've already used this junit reporter during development and tested it with configured Bitbucket. I'll gather some real-life data and post it here for further discussion.
3691e5b
to
9bf286f
Compare
Closes #568
PR aims to implement a reporter for generating JUnit xml. Without
--reporter-options
it will output the results to the console. By providingpath
value, the reporter will try to put the output into the file.Added small "fast-xml-parser" package to the knip package.
Also updated the docs with info about Junit reporter.