Since we are wrapping `testthat::test_dir()`, we can wrap `testthat::test_dir(reporter=)` which has access to [`reporter$start_file(file)`](https://github.com/r-lib/testthat/blob/22a68dd85b65c95173424760a78955b6c55f3848/R/reporter-progress.R#L80-L86) / [`$end_file(file)`](https://github.com/r-lib/testthat/blob/22a68dd85b65c95173424760a78955b6c55f3848/R/reporter-progress.R#L429-L442). Idea: * Wrap this reporter with a `{shinytest2}` shim to capture the file value. * When saving a snapshot file, check for the known names that have been seen if the reporter flag is set. * Ignore if the flag is not set Possible problems: * Executing tests in parallel
Activity
schloerke commentedon Mar 30, 2022
Marking this issue as
wontfixas there is no good fix but to fix it upstream in{testthat}schloerke commentedon Nov 18, 2025
Fixed in r-lib/testthat#1592