weixin_39826342 2020-11-21 19:10 采纳率: 0%
浏览 0

Warnings are not being shown in junit output

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: image

With junit formatter, no warnings shown: image

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

  • 写回答

0条回答 默认 最新

    报告相同问题?