Description Usage Arguments Value Note Author(s) References Examples
View source: R/generateUnitTestFile.R
Generate one testthat
unit test file from an instrumented offensive
programming object. One test file per function is created. It holds all the
related tests, organized by evaluation mode.
See EvaluationMode
for more information.
1 2 3 | generateUnitTestFile(filename_s_1, content_s,
overwrite_b_1 = FALSE,
verbose_b_1 = TRUE)
|
filename_s_1 |
the name of the unit test file to generate |
content_s |
the content of the unit test file to generate |
overwrite_b_1 |
A boolean value, either |
verbose_b_1 |
A boolean value, either |
Returns the file name.
It might be different from the one provided, as
testthat
requires to follow some file naming conventions that are enforced by this function.
This function is provided for convenience. It may ease your own way to generate
testthat
code.
To put this package in action, simply use gautfo
that offers a much more straightforward way to get results.
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
Refer to test_file
from package
testthat
.
Refer to runTestCase
from package wyz.code.offensiveProgramming
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.