Eslint: Formatter: JUnit-XML

Created on 7 Jul 2013  路  3Comments  路  Source: eslint/eslint

We should have a formatter to output results in JUnit XML format. See CSS Lint version:
https://github.com/stubbornella/csslint/blob/master/src/formatters/junit-xml.js

archived due to age enhancement

Most helpful comment

It would be nice if report could always have at least one test case, because without it bamboo parser see such report as empty and fails it.

Something like this would be sufficient:

<testsuite package="org.eslint" time="111" tests="222" errors="0" name="All files">
    <testcase time="111" name="All rules"/>
</testsuite>

All 3 comments

I'll try to port this one from JSHint!
https://github.com/xjamundx/jshint-junit-reporter

I notice, the junit formater doesn't print "pass" status, only dealing with error and warning.

It would be nice if report could always have at least one test case, because without it bamboo parser see such report as empty and fails it.

Something like this would be sufficient:

<testsuite package="org.eslint" time="111" tests="222" errors="0" name="All files">
    <testcase time="111" name="All rules"/>
</testsuite>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

qmmr picture qmmr  路  3Comments

nhooyr picture nhooyr  路  3Comments

breeswish picture breeswish  路  3Comments

justin808 picture justin808  路  3Comments

albertxing picture albertxing  路  3Comments