Description Usage Arguments Details Value Author(s) Examples
Run included package regression tests.
1 2 3 4 | selfCoverage(testtype = c("testthat", "RUnit"),
testthatpath = system.file(package = "testCoverage", "tests", "testthat"),
runitpath = system.file(package = "testCoverage", "tests", "RUnit"),
reporthtml = FALSE, printtestprotocol = FALSE)
|
testtype |
Either 'testthat' or 'RUnit' to select a testing framework. |
testthatpath |
Path to unit test files. Package directory "tests/testthat" by default. |
runitpath |
Path to unit test files. Package directory "tests/RUnit" by default. |
reporthtml |
Should HTML reports be generated? FALSE by default. Warning: This will open a lot of tabs in your browser. |
printtestprotocol |
Should an RUnit HTML reports be generated? FALSE by default. |
Executes the package regression tests, and optionally produces an html report. Both RUnit and testthat tests are available.
The results of executing the test suites via the function
selfCoverage
.
Mango Solutionssupport@mango-solutions.com
1 2 3 4 5 6 | #Use demo(unittest) to run these tests.
## Not run:
selfCoverage(testtype = "RUnit")
selfCoverage(testtype = "testthat")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.