tinytest icon indicating copy to clipboard operation
tinytest copied to clipboard

A lightweight, no-dependency, but full-featured package for unit testing in R

Results 24 tinytest issues
Sort by recently updated
recently updated
newest added

First, assume that `getwd()` returns "pkg". Then if I run tests via `run_test_dir("tests")`, and use `call_wd()` to access the previous working directory, it will return "pkg/tests" instead of "pkg". I...

Hello, `tinytest` 1.4.1 was released on CRAN end of February 2023, so a bit more than 8 months at the time of writing. There are some nice features in the...

It would be nice if **tinytest** offered an option to continue testing a file or directory even if an error is encountered. For example, if we could run `run_test_file('test.r')` and...

I'm developing a package for project-specific data processing. One step is checking whether a number of names are really distinct, or if similar names refer to the same person. For...

Hi Mark, @markvanderloo I hope you are well. I am using `tinytest` for a Bioconductor package: [AnVILAz](https://github.com/Bioconductor/AnVILAz/tree/unittests) and I am having difficulty using `exit_file()` and `exit_if_not`. They don't seem to...

If a dependency was found using .libPaths or the lib.loc argument of library(...), then tinytest::build_install_test won't find it. This can be mitigated by setting the enironment variable R_LIBS_USER instead, however...

Hi, thanks for tinytest. Glad to see that not everyone thinks testing in R is a solved problem! I'm interested to see how to integrate/export test results in CI flows....

When running the tests verbose one get the information on a skipped test and the according skipping message. But this information is not stored in the tinytest and the summary(tinytestResults)...

Is there a plan to support `setup.R`, `teardown.R` and `helper_*.R` files, similar to `testthat`? I use these quite often to set/reset options or to create functions which are used in...

question

Hi Mark, @markvanderloo Happy New Year! I hope you are doing well. In Bioconductor, we run `longtests` for packages that require extensive testing. For this we add a `longtests` directory...