oclif / fancy-test

extends mocha with helpful, chainable extensions
https://npmjs.com/package/fancy-test
61 stars 9 forks source link

Issues with running fancy-tests in mocha with --parallel #337

Open mdonnalley opened 1 year ago

mdonnalley commented 1 year ago

There are a couple of issues that happen when you attempt to run mocha tests in parallel.

The first is that a non-determinate number of tests are skipped. This problem seems to be resolved by explicitly import it from mocha instead of relying on the global here, https://github.com/oclif/fancy-test/blob/main/src/base.ts#L6

The second is that once you resolve the first, tests fail randomly. My best guess is that fancy-test is maintaining some global state that gets mangled when you run tests in parallel.

git2gus[bot] commented 1 year ago

This issue has been linked to a new work item: W-14208326