Inspired by @markvdloo's talk at #useR2021 today on the {tinytest} package, I converted one of my CRAN packages this morning. Seems like a great fit for simple #rstats test suites!
1
4
7
What do you think testthat could learn from tinytest?
1
1
I think tinytest's focus on being dependency-free is its only real advantage, personally. It's very appealing for CI systems or Docker builds where you actively wait for each of testthat's 31 dependencies to install. 1/
2
1
On the other hand, it has zero answer to some of testthat's advanced features: smart skip() functionality, custom reporters (which we do use), and snapshots. So it can really only replace simpler usecases, in my view. 2/
1
The `tinytest` package actually has most excellent "skipping" facilities thanks to `exit_file()`, and its wise design decision to have all test files being #RStats scripts. So whatever is computable in an R script can be a condition to skip -- which I use aplenty in my packages.

Jul 6, 2021 · 8:48 PM UTC

1
3