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

View source: R/stub.tests.R

stub.testsR Documentation

Generate unit tests for your helper functions.

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

stub.tests()

Value

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

Examples

library('ProjectTemplate')

## Not run: stub.tests()

johnmyleswhite/ProjectTemplate documentation built on April 24, 2024, 9:23 a.m.