runittotestthat: Convert RUnit tests to testthat tests.

Description Details

Description

testthat has some nice features like test caching that aren't suppported by RUnit. This package lets you automatically convert your existing RUnit tests to testthat tests.

Details

There are three functions of interest:

  1. convert_test converts an individual RUnit test to a call to a testthat test.

  2. convert_test_file sources all the tests in a file, converts each one, then outputs them to a file (or file connection; stdout by default).

  3. convert_package_tests takes a string naming a package, or a devtools::package object and loops over the files in 'inst/tests' (or wherever you specify), converting the tests, and outputting to files or stdout.



Search within the runittotestthat package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.