Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Outputting JUnit XML ? #10

Open
0gust1 opened this issue Feb 25, 2014 · 1 comment
Open

Outputting JUnit XML ? #10

0gust1 opened this issue Feb 25, 2014 · 1 comment

Comments

@0gust1
Copy link

0gust1 commented Feb 25, 2014

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
Copy link
Author

0gust1 commented Feb 26, 2014

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 :
gruntjs/grunt-contrib-jshint#8
For tight integration of tools like jsHint, jsValidate with an CI platform (Hudson / Jenkins), grunt tasks may not be the response.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant