-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Feature]: Change testDir in the Playwright config to accept an array of paths #32805
Comments
As a workaround, you can set a common parent as One issue with having multiple entries in |
Do you have any idea how I can make testMatch stop ignoring node_modules? I have a weird use case when I have to run tests from an npm package |
No easy solution at the moment, |
🚀 Feature Request
Currently the testDir parameter in the playwright config file accepts a single path string (https://playwright.dev/docs/api/class-testconfig#test-config-test-dir). Making it an array will be of great benefit for use cases such as monorepos etc.
Example
Before:
After:
Motivation
In a monorepo setup where different parts of the application have their own test directories this will make it possible to run all tests at once when needed. At the moment it's not possible and a separate Playwright instance must be started for each sub-repo.
The text was updated successfully, but these errors were encountered: