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

Html reporter displays duplicate results #2222

Closed
npbenjohnson opened this issue Apr 25, 2016 · 2 comments
Closed

Html reporter displays duplicate results #2222

npbenjohnson opened this issue Apr 25, 2016 · 2 comments

Comments

@npbenjohnson
Copy link

Html reporter re-emits 'test-end' for some reason on failure, so the event gets reported once by the runner, and once by the reporter, duplicating the results.

inside html reporter:

  runner.on('fail', function(test) {
    // For type = 'test' its possible that the test failed due to multiple
    // done() calls. So report the issue here.
    if (test.type === 'hook'
      || test.type === 'test') {
      runner.emit('test end', test);
    }
  });
@yefim
Copy link

yefim commented Apr 26, 2016

There's a PR out to fix it: #2112

@danielstjules
Copy link
Contributor

Yup, this is a duplicate of #2083 Sorry, it should be merged in the near future!

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

3 participants