oclif / fancy-test

extends mocha with helpful, chainable extensions

Home Page:https://npmjs.com/package/fancy-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mdonnalley opened this issue · comments

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.

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