New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jUnit Support #27
jUnit Support #27
Conversation
Not a bad first attempt. The hierarchy is testsuites -> testsuite -> testcase -> error. Take a look at how we did it for CSS Lint. Source: https://github.com/stubbornella/csslint/blob/master/src/formatters/junit-xml.js Tests: https://github.com/stubbornella/csslint/blob/master/tests/formatters/junit-xml.js You may event want to try running CSS Lint on a CSS file and specify JUnit XML as the output format to get a good example. |
Thanks for the feedback! I knew I was missing something. I'll get those fixes in ASAP! |
Okay I updated most of that stuff. What are we going to do about support & testing the output for multiple files? Currently the formatters only seem to support 1 file at a time for structured output like this. Obviously this can be solved by adding
Here's an example of the latest using my pull request:
|
Very good point. To keep it simple, let's start by passing in all results. |
Okay I'll send a PR for it in a few days or less :) |
Awesome, thanks! On Tue, Jul 16, 2013 at 10:52 AM, Jamund Ferguson
Nicholas C. Zakas Author, Professional JavaScript for Web Developers |
Mulitple file support is in and it looks like this. Let me know if any other changes are needed.
|
Looks to good to me! Can you update this PR with the latest? |
The output looks nice when there are errors, but may be problems when there are not any errors.
I'm not a jUnit expert, so mainly I wanted to some feedback to make sure I was close :)
This will hopefully solve issue #16.