grunt-jsvalidate icon indicating copy to clipboard operation
grunt-jsvalidate copied to clipboard

Outputting JUnit XML ?

Open 0gust1 opened this issue 10 years ago • 1 comments

I'm currently integrating front-end build tasks on a CI server. The CI manager would want a JUnitXML as output.

I've read a mention about that in http://ariya.ofilabs.com/2012/10/javascript-validator-with-esprima.html

I tried to pass a esprimaOptions: {format:'junit'} to the jsvalidate task, but it doesn't seem to work.

In https://github.com/ariya/grunt-jsvalidate/blob/master/tasks/jsvalidate.js the esprimaOptions doesn't seem to be used.

Maybe there is a good reason at that (impossibility to output well formed XML via Grunt ?), or maybe I missed something. What do you think about that ? I could try to implement this feature, if feasible / possible.

0gust1 avatar Feb 25 '14 18:02 0gust1

I played a little yesterday, I managed to generate a jUnit xml sekeleton on standard output.

But upon further research, I think it may be the same problematic as grunt-contrib-jshint : https://github.com/gruntjs/grunt-contrib-jshint/issues/8 For tight integration of tools like jsHint, jsValidate with an CI platform (Hudson / Jenkins), grunt tasks may not be the response.

0gust1 avatar Feb 26 '14 09:02 0gust1