selfCoverage: Code coverage test example packages.

Description Usage Arguments Details Value Author(s) Examples

Description

Run included package regression tests.

Usage

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)

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.

Details

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

Value

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

Author(s)

Mango Solutionssupport@mango-solutions.com

Examples

1
2
3
4
5
6
#Use demo(unittest) to run these tests.
## Not run: 
selfCoverage(testtype = "RUnit")
selfCoverage(testtype = "testthat")

## End(Not run)

MangoTheCat/testCoverage documentation built on May 7, 2019, 2:24 p.m.