Update 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!
该提问来源于开源项目:stoplightio/spectral