Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

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

Open
mdonnalley opened this issue Sep 29, 2023 · 1 comment
Open

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

mdonnalley opened this issue Sep 29, 2023 · 1 comment

Comments

@mdonnalley
Copy link
Contributor

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.

@mdonnalley mdonnalley added the bug label Sep 29, 2023
@git2gus
Copy link

git2gus bot commented Sep 29, 2023

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

@mdonnalley mdonnalley removed the bug label Mar 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant