glenjamin / glenjamin/mocha-multi
Cannot read property 'tests' of undefined Error when using mocha-multi
- Dominant language
- JavaScript
- Stars
- 77
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Sorry I am a beginner to mocha. I am trying to generate two reporters for my tests using :
mocha --timeout 60000 -R mocha-multi --reporter-options dot=-,xunit=file.xml,doc=docs.html
I am getting following error in tests: stats.tests.
`
/Users/example/.nvm/versions/node/v8.12.0/lib/node_modules/mocha/lib/reporters/xunit.js:94
tests: stats.tests,
^
TypeError: Cannot read property 'tests' of undefined
at EventEmitter.
(/Users/example/.nvm/versions/node/v8.12.0/lib/node_modules/mocha/lib/reporters/xunit.js:94:24)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:106:13)
at EventEmitter.emit (events.js:208:7)
at withReplacedStdout (/Users/example/.nvm/versions/node/v8.12.0/lib/node_modules/mocha-multi/mocha-multi.js:197:14)
at withReplacedStdout (/Users/example/.nvm/versions/node/v8.12.0/lib/node_modules/mocha-multi/mocha-multi.js:159:12)
at Runner.runner.on.eventArgs (/Users/example/.nvm/versions/node/v8.12.0/lib/node_modules/mocha-multi/mocha-multi.js:196:7)
at emitNone (events.js:111:20)
at Runner.emit (events.js:208:7)
at Runner.uncaught (/Users/example/.nvm/versions/node/v8.12.0/lib/node_modules/mocha/lib/runner.js:868:8)
at process.uncaught (/Users/example/.nvm/versions/node/v8.12.0/lib/node_modules/mocha/lib/runner.js:887:10)
at emitOne (events.js:116:13)
at process.emit (events.js:211:7)
at process._fatalException (bootstrap_node.js:391:26)
npm ERR! Test failed. See above for more details.
`
Is there any other packages that I should install to use mocha-multi?
Thank you
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.