How TestPerch selects tests
Consider a team that runs every Playwright test on main and wants faster feedback on pull requests. The team can keep full runs on main and let AI choose tests for pull requests targeting that branch.
What changed?
Section titled “What changed?”For a PR from fix/checkout into main, TestPerch uses the pull-request environment that matches main. When the reporter supplies a stack base, every layer uses that branch to match its environment. AI selects tests for each layer using the changes that PR introduces relative to its immediate target.
With selection enabled on a branch, TestPerch considers all the changes in each push. Keeping selection off for main gives the team a full-suite baseline after merging.
Which tests will run?
Section titled “Which tests will run?”TestPerch selects the spec files relevant to the change. Depending on the change, that can mean every file, a subset, or none. If your sign-in test should run on every pull request, you can tell TestPerch to always include it.
Why can a retry look different?
Section titled “Why can a retry look different?”When you retry the same CI build, TestPerch can rerun just the tests that failed or were flaky. A new push starts a fresh selection based on what changed.