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

Not working with Mocha 8.2.1 --parallel mode #96

Open
geoffcorey opened this issue Mar 23, 2021 · 0 comments
Open

Not working with Mocha 8.2.1 --parallel mode #96

geoffcorey opened this issue Mar 23, 2021 · 0 comments

Comments

@geoffcorey
Copy link

Versions:
Node: 14.16.0
"mocha": "^8.2.1"
"mocha-jenkins-reporter": "^0.4.5"
"nyc": "^14.1.1"

File: mocha-config.json

{
"reporter": "mocha-jenkins-reporter",
"require": ["should", "./tests/setup.js"],
"exit": true
}

Command:

nyc --exclude=tests//*.js mocha --config=mocha-config.json --parallel --timeout 480000 tests//*.js

Results:

Every test suite fails with individual test error of

  21) Uncaught error outside test suite:
     Uncaught TypeError: Cannot read property 'length' of undefined
      at startSuite (node_modules/mocha-jenkins-reporter/lib/jenkins.js:171:21)
      at ParallelBufferedRunner.<anonymous> (node_modules/mocha-jenkins-reporter/lib/jenkins.js:331:5)
      at ParallelBufferedRunner.EventEmitter.emit (domain.js:467:12)
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
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

1 participant