unittests: Unit tests for the package rino

Description Note Examples

Description

Performs unit tests defined in this package by running example(unitTests.svUnit). Tests are in runit*.R files Located in the '/unitTests' subdirectory or one of its subdirectories ('/inst/unitTests' and subdirectories in package sources).

Note

This method of integrating svUnit with R CMD CHECK is stolen from the SciViews-K example written by Philippe Grosjean (phgrosjean@sciviews.org) and available from http://www.sciviews.org/SciViews-K/SciViews-K_UnitManual_0.6.zip.

Examples

1
2
3
4
5
6
7
8
9
library(svUnit)
# Make sure to clear log of errors and failures first
clearLog()

# Run all test units defined in the 'rino package
(runTest(svSuite("package:rino"), "rino"))

# Check errors at the end of the process (needed to interrupt R CMD check)
errorLog()

jrnold/r-strat documentation built on May 20, 2019, 1:05 a.m.