runittotestthat
From runittotestthat v0.0-2
by Richard Cotton
Convert RUnit tests to testthat tests.
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.
- Keywords
- utilities
Details
There are three functions of interest:
-
convert_test
converts an individualRUnit
test to a call to atestthat
test. -
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). -
convert_package_tests
takes a string naming a package, or adevtools::package
object and loops over the files in `inst/tests` (or wherever you specify), converting the tests, and outputting to files orstdout
.
Community examples
Looks like there are no examples yet.