Playwright · Senior · Question 5 of 77
What does --only-changed do?
- 1Runs only tests whose code changed in the PR
- 2Runs only test files affected by Git changes
- 3Re-runs only the tests that changed status
Show the answer
Correct answer: Runs only test files affected by Git changes
Explanation
It compares against a Git ref and runs changed test files and those importing changed files. It's a fast pre-check, not a replacement for the full suite.