Man pages for hadley/testthat
Unit Testing for R

auto_testWatches code and tests for changes, rerunning tests as...
auto_test_packageWatches a package for changes, rerunning tests as...
capture_conditionCapture conditions, including messeages, warnings,...
capture_outputCapture output to console
CheckReporterCheck reporter: 13 line summary of problems
compareProvide human-readable comparison of two objects
compare_stateCompare two directory states.
comparison-expectationsExpectation: is returned value less or greater than specified...
contextDescribe the context of a set of tests.
DebugReporterTest reporter: start recovery.
default_reporterRetrieve the default reporter.
describedescribe: a BDD testing language
dir_stateCapture the state of a directory.
equality-expectationsExpectation: is the object equal to a value?
evaluate_promiseEvaluate a promise, capturing all types of output.
expectThe building block of all 'expect_' functions
expectationConstruct an expectation object
expect_cpp_tests_passTest Compiled Code in a Package
expect_known_outputExpectations: is the output or the value equal to a known...
expect_lengthExpectation: does a vector have the specified length?
expect_matchExpectation: does string match a regular expression?
expect_namedExpectation: does object have names?
expect_successTools for testing expectations
expect_thatExpect that a condition holds.
failDefault expectations that alway succeed or fail.
FailReporterTest reporter: fail at end.
find_reporterFind reporter object given name or object.
find_test_scriptsFind the test files.
inheritance-expectationsExpectation: does the object inherit from a S3 or S4 class,...
JunitReporterTest reporter: summary of errors in jUnit XML format.
ListReporterList reporter: gather all test results along with elapsed...
LocationReporterTest reporter: location
logical-expectationsExpectation: is the object true/false?
make_expectationMake an equality test.
MinimalReporterTest reporter: minimal.
MultiReporterMulti reporter: combine several reporters in one.
notNegate an expectation
oldskoolOld-style expectations.
output-expectationsExpectation: does code produce output/message/warning/error?
ProgressReporterTest reporter: interactive progress bar of errors.
reexportsObjects exported from other packages
ReporterStub object for managing a reporter of tests.
reporter-accessorsGet/set reporter; execute code in specified reporter.
RstudioReporterTest reporter: RStudio
safe_digestCompute a digest of a filename, returning NA if the file...
SilentReporterTest reporter: gather all errors silently.
skipSkip a test.
source_fileSource a file, directory, or all helpers.
StopReporterTest reporter: stop on error.
SummaryReporterTest reporter: summary of errors.
takes_less_thanExpectation: does expression take less than a fixed amount of...
TapReporterTest reporter: TAP format.
TeamcityReporterTest reporter: Teamcity format.
teardownRun code on setup/teardown
test_dirRun all tests in directory or package
test_envGenerate default testing environment.
test_examplesTest package examples
test_fileRun all tests in specified file.
test_pathLocate file in testing directory.
test_thatCreate a test.
testthat-packageR package to make testing fun!
testthat_resultsCreate a 'testthat_results' object from the test results as...
try_againTry evaluating an expressing multiple times until it...
use_catchUse Catch for C++ Unit Testing
watchWatch a directory for changes (additions, deletions &...
with_mockMock functions in a package.
hadley/testthat documentation built on Jan. 20, 2018, 2:12 p.m.