mocha-parallel / mocha-parallel-tests

Parallel test runner for mocha tests. Looking for maintainer.
MIT License
200 stars 45 forks source link

feat: add --share-envs and --stream-output options #274

Closed saartochner-lumigo closed 9 months ago

saartochner-lumigo commented 4 years ago

Probably not strictly related to your changes but more to your use case: environment variables will be shared between the workers and the main process but how're you going to let worker B know about the changes in environment variables in worker A?

Great question! I wrote a beforeEach and afterEach hooks that capture and release the locks for the different services using the environment variables.

saartochner-lumigo commented 4 years ago

Typescript is failing because of this: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/41562 :(

1999 commented 4 years ago

Also, let's wait until your PR to @types/node gets merged and update the code in this PR.

saartochner-lumigo commented 4 years ago

Also, let's wait until your PR to @types/node gets merged and update the code in this PR.

Update: My PR is duplicated with: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/41356 so we just wait until this one will be approved 😩