Warnings are not being shown in junit output
See original GitHub issueUpdate from Stoplight/Phil: Let’s go with the “Convert anything that meets the fail-severity to an error in the case of JUnit” option. It makes sense.
We use the junit output to show errors in Gitlab’s Merge Requests, and it’s worked great until now. After upgrading to v5, we were trying to setup our builds to fail when spectral catches an error
, but would also like to show warnings. However, it appears that the junit
output doesn’t display warnings, but other formatters do (checked with stylish
and json
, but haven’t rigorously tested all the others).
With stylish
formatter, warnings show:
With junit
formatter, no warnings shown:
I’d be happy to try and cook up an example if it’s needed, but my hope is that it was just either a) an oversight on our part, b) something that’s easily spotted to fix or c) intentional but undocumented behavior.
Let me know if you need more information! Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (7 by maintainers)
It works for me too.
Also thanks for the extra output in
--help
!The solution works for me and outputs warnings via JUnit as desired (when setting
--fail-severity=warn
)