testme-package: This is package 'testme'

testme-packageR Documentation

This is package 'testme'

Description

Rapid Development of Software Tests

Details

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.

See Also

runTestFunction() for starting the main workflow

vignette('introduction', package = 'testme') for a detailed introduction


sboehringer/testme documentation built on Jan. 17, 2024, 4:58 p.m.