scriptests v1.0-16

0

Monthly downloads

0th

Percentile

Transcript-Based Unit Tests that are Easy to Create and Maintain

Support for using .Rt (transcript) tests in the tests directory of a package. Provides more convenience and features than the standard .R/.Rout.save tests. Tests can be run under R CMD check and also interactively. Provides source.pkg() for quickly loading code, DLLs, and data from a package for use in an edit/compile/test development cycle.

Functions in scriptests

Name Description
plus addition
scriptests-package Support for running transcript-style tests
compareTranscriptAndOutput Compare desired and actual output from running transcript-style tests.
runScripTests Run the tests in the tests directory of a package
source.pkg Quickly load code and data of a package
ScripDiff Support functions for package scriptests
parseTranscriptFile Parse a R transcript file into blocks of commands and output
scriptests.design Design considerations for package scriptests
runtests Interactively run some Rt test files in a package
No Results!

Vignettes of scriptests

Name
testpkg.tests/plus.Rt
testpkg.tests/runtests.R
testpkg.tests/willfail.Rt
testpkg/DESCRIPTION
scriptests.Rnw
No Results!

Last month downloads

Details

Type Package
Date 2016-07-19
License GPL
NeedsCompilation no
Packaged 2016-07-21 23:43:31 UTC; tap
Repository CRAN
Date/Publication 2016-07-22 22:42:47
imports methods
Contributors Tony Plate

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/scriptests)](http://www.rdocumentation.org/packages/scriptests)