Skip to content
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

JUnitReporter doesn't output "total" tests #335

Open
benvinegar opened this issue Aug 1, 2014 · 2 comments
Open

JUnitReporter doesn't output "total" tests #335

benvinegar opened this issue Aug 1, 2014 · 2 comments

Comments

@benvinegar
Copy link
Contributor

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

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.

@sethmcl
Copy link
Contributor

sethmcl commented Aug 1, 2014

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

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

No branches or pull requests

2 participants