Support different modes of test files filtering.
File-based
When script.R was mutated, run testthat::test_dir(..., filter = "^script$")
Function-based
- When a
func in script.R was mutated, run all test files that call func.
- Or when a
func in script.R was mutated, find all functions that call func. Run all test files that call func or a caller of func.
Support different modes of test files filtering.
File-based
When
script.Rwas mutated, runtestthat::test_dir(..., filter = "^script$")Function-based
funcinscript.Rwas mutated, run all test files that callfunc.funcinscript.Rwas mutated, find all functions that callfunc. Run all test files that callfuncor a caller offunc.