What problem does this feature solve?
Large monorepos need a fast local command that runs only tests affected by Git changes. Jest and Vitest already support this workflow, but Rstest currently requires running the full suite or maintaining custom scripts.
What does the proposed API look like?
Add a CLI option similar to Jest/Vitest:
jest --onlyChanged
vitest run --changed
rstest --changed
rstest --changed HEAD~1
rstest --changed origin/main
Example package script:
{
"scripts": {
"test:changed": "rstest --config ./rstest.config.mts --changed"
}
}
What problem does this feature solve?
Large monorepos need a fast local command that runs only tests affected by Git changes. Jest and Vitest already support this workflow, but Rstest currently requires running the full suite or maintaining custom scripts.
What does the proposed API look like?
Add a CLI option similar to Jest/Vitest:
Example package script:
{ "scripts": { "test:changed": "rstest --config ./rstest.config.mts --changed" } }