testme-package | R Documentation |
Rapid Development of Software Tests
Simplify unit and integrated testing by using implicit definitions. When writing new functions, users usually use example invocations for checking. Exactly this should be and is enough to develop tests using testme. Use ?'testme-package' or visit the project wiki <https://github.com/sboehringer/testme/wiki> for a tutorial.
The idea of the testme
package is to call examples of a function to test. Return values are
assigned to variables with a defined pattern, by default T1, T2, ...
. These expressions are
grouped into a function which calls TestMe
as a last step. This is enough to define the
tests. The first run of the tests will store the return values as expectations. Subsequent calls
will compare to these expecatations.
runTestFunction() for starting the main workflow
vignette('introduction', package = 'testme') for a detailed introduction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.