-
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
[Feature] add CLI flag for making a build but not running tests afterwards #23860
Comments
@tom2drum Are you running component tests only? I don't think we use |
@dgozman I should have mentioned it, yes, we are running components visual tests exclusively. |
@tom2drum I don't think we would like anyone to build on top of However, we are open to an option/flag similar to Jest's |
Yeah, the flag similar to Jest's one would be perfect. Actually I wanted propose this idea too as alternative. I am not sure if I am able to implement it by myself, so I will probably wait for an implementation from your side. Thanks! 🙌 |
@dgozman since the issue is about CI exclusively, what do you think, maybe it's better to implement The For example Jest has whole bunch of options for CI-friendly usage, we could also choose this approach:
Also with VCS-based option it's hard to handle caveats with P.S. I'm interested in this solution and perhaps I could try to implement it so let me know which approach do you think is the best |
@dgozman could you take a look at this idea? ^ |
Just came to this thread by searching. I would like to express that this is a great idea, and a feature that we all need |
@dj-stormtrooper @ilkerbynder We are experimenting in this area, and v1.42 release now has a new experimental command npx playwright find-related-test-files file1.ts file2.ts |
Currently, as I see during the build process Playwright creates a file
metainfo.json
stored in the.cache
directory. This file contains information about all dependencies for every test suite that will be run after the build stage. I would like to use this info for solving my problem. I try to implement in our company CI workflow a script that will run only those test suites which were affected by the changes in the current branch comparing tomain
branch. We run Playwright tests for every pull request in our repo, and this enhancement in the workflow will allow us optimize billable time of our CI provider. So, I can figure out what files was change in the pull request, but I still need to match this file list against the dependencies of each test suite in order to get which one should be run.So, I would love to see in the Playwright an option that will allow to make the actual build and not run all tests afterwards.
The text was updated successfully, but these errors were encountered: