r-lib / testthat

An R 📦 to make testing 😀
https://testthat.r-lib.org
Other
868 stars 313 forks source link

Enable custom snapshot file name #1939

Closed pawelru closed 2 months ago

pawelru commented 3 months ago

The use case is connected to the https://github.com/r-lib/testthat/issues/1938

I would like to be able to give a custom file name for a snapshot. Currently this is hardcoded to be identical as file name (stripping "test-" part) and it cannot be changed.

hadley commented 2 months ago

Unfortunately this is by design, and not something we could easily change without a bunch of work.