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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Feature: Parallel support for test (it()) block #4983

Open
rakeshpareek01 opened this issue May 9, 2023 · 1 comment
Open

馃殌 Feature: Parallel support for test (it()) block #4983

rakeshpareek01 opened this issue May 9, 2023 · 1 comment
Labels
status: waiting for author waiting on response from OP - more information needed type: feature enhancement proposal

Comments

@rakeshpareek01
Copy link

Is your feature request related to a problem or a nice-to-have?? Please describe.
Running the test suite in parallel creates conflict when Test Cases in a suite (describe) block are dependent on any database configuration and the same configuration is changing at runtime in other different file test suites as per the Test Cases in describe block
In this use-case, every test suite has a before and after block to set some settings on an application, and in the same project every test suite uses the same application but on a different set of settings (set in before) so running describe block parallel is not a good idea as before block from multiple suites will run parallel and that will create conflict and tests will fail.

Describe the solution you'd like
There should be an option to run Test Cases (all it blocks) in Parallel inside of a describe block similar to mocha.parallel. I have tried using mocha.parallel but it has a lot of limitations like it does not support mocha config, reties etc...

Describe alternatives you've considered
mocha.parallel is a good option but it has a lot of limitations for mocha features

@rakeshpareek01 rakeshpareek01 added the type: feature enhancement proposal label May 9, 2023
@JoshuaKGoldberg JoshuaKGoldberg changed the title [Feature Request]: Parallel support for test (it()) block 馃殌 Feature: Parallel support for test (it()) block Dec 27, 2023
@JoshuaKGoldberg
Copy link
Member

What you're describing basically is parallel mode! 馃槃

We're going to want to add any major new parallel-equivalent modes. Especially given #5027, we just don't have the budget. And even if we did, I think a better path forward would be to make parallel mode able to satisfy your use case.

limitations

Let's talk about this more. What specifically are the limitations you're bumping into?

does not support mocha config

Err, doesn't it? It works on my machine. Nothing in the docs indicates it wouldn't. Could you please provide a full reproduction showing it not?

retries

Same question 馃檪 .

@JoshuaKGoldberg JoshuaKGoldberg added the status: waiting for author waiting on response from OP - more information needed label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for author waiting on response from OP - more information needed type: feature enhancement proposal
Projects
None yet
Development

No branches or pull requests

2 participants