scriptests: 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.

Author
Tony Plate
Date of publication
2016-07-22 22:42:47
Maintainer
Tony Plate <tplate@acm.org>
License
GPL
Version
1.0-16

View on CRAN

Man pages

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

Files in this package

scriptests
scriptests/inst
scriptests/inst/examples
scriptests/inst/examples/ScripTestsExampleFull
scriptests/inst/examples/ScripTestsExampleFull/tests
scriptests/inst/examples/ScripTestsExampleFull/tests/allperfect3.Rt
scriptests/inst/examples/ScripTestsExampleFull/tests/shouldfail.Rt
scriptests/inst/examples/ScripTestsExampleFull/tests/continueAfterStop.Rt
scriptests/inst/examples/ScripTestsExampleFull/tests/allperfect.Rt
scriptests/inst/examples/ScripTestsExampleFull/tests/allperfect6.Rt
scriptests/inst/examples/ScripTestsExampleFull/tests/allperfect4.Rt
scriptests/inst/examples/ScripTestsExampleFull/tests/allperfect2.Rt
scriptests/inst/examples/ScripTestsExampleFull/tests/allperfect8.Rt
scriptests/inst/examples/ScripTestsExampleFull/tests/runtests.R
scriptests/inst/examples/ScripTestsExampleFull/tests/allperfect5.Rt
scriptests/inst/examples/ScripTestsExampleFull/tests/plus.Rt
scriptests/inst/examples/ScripTestsExampleFull/tests/allperfect7.Rt
scriptests/inst/examples/ScripTestsExampleFull/NAMESPACE
scriptests/inst/examples/ScripTestsExampleFull/R
scriptests/inst/examples/ScripTestsExampleFull/R/privatePlus.R
scriptests/inst/examples/ScripTestsExampleFull/R/plus.R
scriptests/inst/examples/ScripTestsExampleFull/DESCRIPTION
scriptests/inst/examples/ScripTestsExampleFull/man
scriptests/inst/examples/ScripTestsExampleFull/man/exportedPlus.Rd
scriptests/inst/examples/ScripTestsExampleFull/man/plus.Rd
scriptests/inst/examples/ScripTestsExampleMin
scriptests/inst/examples/ScripTestsExampleMin/tests
scriptests/inst/examples/ScripTestsExampleMin/tests/runtests.R
scriptests/inst/examples/ScripTestsExampleMin/tests/plus.Rt
scriptests/inst/examples/ScripTestsExampleMin/R
scriptests/inst/examples/ScripTestsExampleMin/R/plus.R
scriptests/inst/examples/ScripTestsExampleMin/DESCRIPTION
scriptests/inst/examples/ScripTestsExampleMin/man
scriptests/inst/examples/ScripTestsExampleMin/man/plus.Rd
scriptests/inst/sccversion.txt
scriptests/inst/svnversion.txt
scriptests/inst/doc
scriptests/inst/doc/scriptests.R
scriptests/inst/doc/scriptests.pdf
scriptests/inst/doc/scriptests.Rnw
scriptests/tests
scriptests/tests/badsyntax.Rt
scriptests/tests/allperfect3.Rt
scriptests/tests/CONFIG
scriptests/tests/continuationLines.Rt
scriptests/tests/internals.Rt
scriptests/tests/testErrorFormatting.Rt
scriptests/tests/continueAfterStop.Rt
scriptests/tests/allperfect.Rt
scriptests/tests/directives.Rt
scriptests/tests/simple2.Rt
scriptests/tests/error.Rt
scriptests/tests/infowarn1.Rt
scriptests/tests/allperfect6.Rt
scriptests/tests/allperfect4.Rt
scriptests/tests/allperfect2.Rt
scriptests/tests/allperfect8.Rt
scriptests/tests/runtests.R
scriptests/tests/allperfect5.Rt
scriptests/tests/plus.Rt
scriptests/tests/allperfect7.Rt
scriptests/tests/simple1.Rt
scriptests/NAMESPACE
scriptests/NEWS
scriptests/R
scriptests/R/source.pkg.R
scriptests/R/Rdiff.R
scriptests/R/rttests.R
scriptests/R/ScripDiff.R
scriptests/R/runTestsHereFast.R
scriptests/R/runPackageTests.R
scriptests/R/parseTranscriptFile.R
scriptests/R/runScripTests.R
scriptests/R/checkTestOutput.R
scriptests/R/compareTranscriptAndOutput.R
scriptests/R/plus.R
scriptests/R/dumprout.R
scriptests/R/evalCapture.R
scriptests/R/createRfromRt.R
scriptests/R/runtests.R
scriptests/R/initializeTests.R
scriptests/R/summarizeTests.R
scriptests/R/compareSingleTest.R
scriptests/vignettes
scriptests/vignettes/testpkg
scriptests/vignettes/testpkg/tests
scriptests/vignettes/testpkg/tests/willfail.Rt
scriptests/vignettes/testpkg/tests/runtests.R
scriptests/vignettes/testpkg/tests/plus.Rt
scriptests/vignettes/testpkg/R
scriptests/vignettes/testpkg/R/plus.R
scriptests/vignettes/testpkg/DESCRIPTION
scriptests/vignettes/testpkg/man
scriptests/vignettes/testpkg/man/plus.Rd
scriptests/vignettes/scriptests.Rnw
scriptests/vignettes/testpkg.tests
scriptests/vignettes/testpkg.tests/willfail.Rt
scriptests/vignettes/testpkg.tests/runtests.R
scriptests/vignettes/testpkg.tests/plus.Rt
scriptests/MD5
scriptests/build
scriptests/build/vignette.rds
scriptests/DESCRIPTION
scriptests/man
scriptests/man/runtests.Rd
scriptests/man/runScripTests.Rd
scriptests/man/compareTranscriptAndOutput.Rd
scriptests/man/plus.Rd
scriptests/man/source.pkg.Rd
scriptests/man/ScripTests.design.Rd
scriptests/man/ScripTests-package.Rd
scriptests/man/parseTranscriptFile.Rd
scriptests/man/setup.Rd