Expectations |
|
|---|---|
Expectation: is returned value less or greater than specified value? |
|
|
|
Expectation: is the object equal to a value? |
Expectation: does code throw error or other condition? |
|
Expectation: does expression return visibily or invisibly? |
|
Expectation: does a vector have the specified length? |
|
Expectation: does string match a regular expression? |
|
Expectation: does code produce warnings or messages? |
|
Expectation: does object have names? |
|
Expectation: is an object |
|
Expectation: does code print output to the console? |
|
Expectation: do two vectors contain the same values? |
|
Expectation: is the code silent? |
|
Expectation: does the object have vctr properties? |
|
Expectation: does the object inherit from a S3 or S4 class, or is it a base type? |
|
Expectation: is the object true/false? |
|
|
|
Skip a test. |
Verify output |
|
Run tests |
|
|
|
Run all tests in directory or package |
Run all tests in specified file |
|
Locate file in testing directory. |
|
Create a test. |
|
Watches code and tests for changes, rerunning tests as appropriate. |
|
Watches a package for changes, rerunning tests as appropriate. |
|
describe: a BDD testing language |
|
Run code on setup/teardown |
|
Use Catch for C++ Unit Testing |
|
Reporters |
|
Check reporter: 13 line summary of problems |
|
Test reporter: start recovery. |
|
Test reporter: fail at end. |
|
Test reporter: summary of errors in jUnit XML format. |
|
List reporter: gather all test results along with elapsed time and file information. |
|
Test reporter: location |
|
Test reporter: minimal. |
|
Multi reporter: combine several reporters in one. |
|
Test reporter: interactive progress bar of errors. |
|
Test reporter: RStudio |
|
Test reporter: gather all errors silently. |
|
Test reporter: stop on error. |
|
Test reporter: summary of errors. |
|
Test reporter: TAP format. |
|
Test reporter: Teamcity format. |
|
Expectation internals |
|
The building block of all |
|
Default expectations that always succeed or fail. |
|