stub.tests: Generate unit tests for your helper functions.

Description Usage Value Examples

View source: R/stub.tests.R

Description

This function will parse all of the functions defined in files inside of the lib directory and will generate a trivial unit test for each function. The resulting tests are stored in the file tests/autogenerated.R. Every test is excepted to fail by default, so you should edit them before calling test.project.

Usage

1

Value

No value is returned; this function is called for its side effects.

Examples

1
2
3
library('ProjectTemplate2')

## Not run: stub.tests()

connectedblue/ProjectTemplate2 documentation built on May 17, 2019, 2:46 p.m.