Help for Writing Unit Tests Based on Function Examples

Take the examples written in your documentation of functions and use them to create shells (skeletons which must be manually completed by the user) of test files to be tested with the 'testthat' package. Sort of like python 'doctests' for R.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("exampletestr")

1.7.3 by Rory Nolan, 2 years ago


https://rorynolan.github.io/exampletestr/, https://github.com/rorynolan/exampletestr#readme


Report a bug at https://github.com/rorynolan/exampletestr/issues


Browse source code at https://github.com/cran/exampletestr


Authors: Rory Nolan [aut, cre] , Sergi Padilla-Parra [ths] , Thomas Quinn [rev] , Laurent Gatto [rev]


Documentation:   PDF Manual  


GPL-3 license


Imports checkmate, fs, magrittr, purrr, readr, rlang, roxygen2, rstudioapi, strex, stringr, styler, usethis, withr

Suggests clipr, covr, crayon, knitr, pacman, rmarkdown, spelling, testthat


See at CRAN