venus.js icon indicating copy to clipboard operation
venus.js copied to clipboard

JUnitReporter doesn't output "total" tests

Open benvinegar opened this issue 11 years ago • 2 comments
trafficstars

Output looks like:

<testsuite name="myspec.spec.js" failures="0" tests="" time="">

Since # of tests is absent, some CI systems believe that no tests have been executed, and consider the build a failure.

The issue doesn't seem to be with the reporter, but rather that test.results.done.total isn't populated.

Value of test.results.done.total at reporting time:

{ failed: 0, total: null }

Currently digging further, but thought I'd throw this up now.

benvinegar avatar Aug 01 '14 00:08 benvinegar

I suspect the issue may be that the <testsuite> tag is output before the suite has actually run. So it always puts out failed="0" and total="", regardless of the outcome.

benvinegar avatar Aug 01 '14 01:08 benvinegar

Hmm I can take a look later tonight. Let me know if you found a fix in the meantime. Thanks!

sethmcl avatar Aug 01 '14 01:08 sethmcl