How would I produce JUnit test report for groovy tests, suitable for consumption by Jenkins/Hudson?

后端 未结 4 1282
误落风尘
误落风尘 2021-02-06 05:05

I\'ve written several XMLUnit tests (that fit in to the JUnit framework) in groovy and can execute them easily on the command line as per the groovy doco but I don\'t quite unde

4条回答
  •  甜味超标
    2021-02-06 05:47

    You can write your own custom RunListener (or SuiteRunListener). It still requires you to write some code, but it's much cleaner than the script you've provided a link to. If you'd like, I can send you the code for a JUnit reporter I've written in JavaScript for Jasmine and you can 'translate' it into Groovy.

提交回复
热议问题