Playwright v1.46 introduces a new CLI option `--only-changed` that allows running only the test files that have changed since the last git commit or from a specific git reference. This eliminates the need for complex scripts previously necessary to achieve this. Additionally, users can now pass a reference branch to pick up

5m read timeFrom playwrightsolutions.com
Post cover image
Table of contents
Original solutionUpdated solutionRunning pre-commit and post-commitExample on playwright-api-test-demoUsing only-changed on monorepos

Sort: