testCoverage (version 0.1.02)

selfCoverage: Code coverage test example packages.

Description

Run included package regression tests.

Usage

selfCoverage(testtype = c("testthat", "RUnit"), testthatpath = system.file(package = "testCoverage", "tests", "testthat"), runitpath = system.file(package = "testCoverage", "tests", "RUnit"), reporthtml = FALSE, printtestprotocol = FALSE)

Arguments

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.

Value

The results of executing the test suites via the function selfCoverage.

Details

Executes the package regression tests, and optionally produces an html report. Both RUnit and testthat tests are available.

Examples

Run this code
#Use demo(unittest) to run these tests.
## Not run: 
# selfCoverage(testtype = "RUnit")
# selfCoverage(testtype = "testthat")
# ## End(Not run)

Run the code above in your browser using DataLab