-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Workers config option for a project #18950
Comments
Hi @suneetfcc As far as I know there is no such option like I think a workaround could be:
It's like in this code snippet (please see to the very bottom of the page), but with the different environment variable. So you can run your tests like And with no such environment variable for other projects. For Windows you need to set environment variable like |
@suneetfcc There is no such feature as of today - you can only specify |
thank you so much i think this is a pretty desirable feature. |
I would also like to see this feature be available. |
I would also love to see this feature. Here's some context for my use case. Currently we have all this tests in a single file, effectively disabling concurrency. We can also just run tests twice, but then handling results and artifacts is a bit tricky. |
I would actually like such a feature per spec-file: test.describe.configure({ workers: 1 }); |
I would also like to have this. In my case I work in a project were we do both api and UI tests. I have divided up this into two projects, one api-test and one ui-test project. Since I don't use the browser at all in the api-test project I can run that project with a larger amount of workers than the UI tests. |
I would like to have this feature as well, under big project this can be quite useful. |
This feature looks useful, it would really help to improve management of test runs. Looking forward for new version with this feature implemented! |
Looks like a great feature. I would also like this implemented! |
@dgozman and @aslushnikov is there any plans for adding workers option to the projects? This would have been a very nice option. |
We'd like also to have this feature implemented so we can tune the parallization grade on different projects. Great job with Playwright! |
This would be a helpful feature for us as well, especially if it could be determined at the spec file level |
Would be great to have this implemented! |
This is a feature that would benefit us a lot! |
Folding into #21970 |
My playwright config looks like
when i run
npx playwright test --project=Project1
Running 18 tests using 3 workers
the project is parallelised with 3 workers and my worker config is not honoured.
Basically i am trying to disable parallelization for one project
The text was updated successfully, but these errors were encountered: