Skip to content

Cannot read property 'tests' of undefined Error when using mocha-multi #60

@srishti77

Description

@srishti77

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.<anonymous> (/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions