tinytest
tinytest copied to clipboard
A lightweight, no-dependency, but full-featured package for unit testing in R
Hi Mark, Not quite sure if this is a bug in tinytest or just wrong expectations from my side, but since it took me quite some time to figure out...
[Brody Gaslam](https://cran.r-project.org/web/packages/unitizer/vignettes/u4_reproducible-tests.html) gives a nice, non-exhaustive list of side effects that may be interesting while testing. 1. Workspace / Evaluation Environment 2. Random seed 3. ~Working directory~ 4. Search path...
Errors thrown by user code are not caught by `tinytest`, but we could let R print the stack trace by default.
This function is called for its side effect of registering functions from an extension package. However this only occurs when run from `run_test_file`, or `source` in interactive mode, but not...