michaelleeallen/mocha-junit-reporter

Wrong report when exception is thrown in beforeEach

stalniy opened this issue · 1 comments

If exception is thrown in describe-s then reporter mixes their test suites. A live demo (xml is written to console): http://plnkr.co/edit/qGWdaXfQZF207lzWUgTM?p=preview

In that case new entries are not added to testcases variable so then index.js#L167 introduces wrong result as it expects that testsuite.tests equals to amount of tests inside testcases.