-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Include file
and line
attribute for junit report output format
#4900
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
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Hello, "Common JUnit XML Format" is not a specification but just an attempt to document the format.
This can be a problem because those attributes are not a part of the "Basic JUnit XML structure". |
This could easily be avoided by making those opt-out/in. |
It's not as easy as you think: the CLI flags don't allow adding options for only one format. So there are 2 possibilities:
The first possibility will be confusing because this option will only work for one format (on 13 formats), so it is not the right possibility. The second possibility seems better and it is near existing formats ( |
Nice! Thank you! |
Welcome
Your feature request related to a problem? Please describe
Various tools like action-junit-report rely on the
file
andline
testcase attributes in order to report errors nicely inline the file.file
andline
testcase attributse are also part of the Common JUnit XML Format:https://github.com/testmoapp/junitxml?tab=readme-ov-file#complete-junit-xml-example
It'd be nice to include that information in golangci-lint reports as well.
Describe the solution you'd like
Include
file
andline
testcase attributes like so:Describe alternatives you've considered
Parsing the file and line number from the classname is too brittle.
Additional context
No response
Supporter
The text was updated successfully, but these errors were encountered: