Convert RUnit tests to testthat tests.
testthat has some nice features like test caching that aren't
RUnit. This package lets you automatically convert your
RUnit tests to
There are three functions of interest:
convert_testconverts an individual
RUnittest to a call to a
convert_test_filesources all the tests in a file, converts each one, then outputs them to a file (or file connection;
convert_package_teststakes a string naming a package, or a
devtools::packageobject and loops over the files in 'inst/tests' (or wherever you specify), converting the tests, and outputting to files or
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.