Expectations |
|
---|---|
Objects |
|
Does code return the expected value? |
|
Does code return an object inheriting from the expected base type, S3 class, or S4 class? |
|
Vectors |
|
Does code return a vector with the specified length? |
|
Does code return a number greater/less than the expected value? |
|
Does code return a vector with (given) names? |
|
Does code return a vector containing the expected values? |
|
Does code return |
|
Does code return a vector with the expected size and/or prototype? |
|
Side-effects |
|
|
Does code throw an error, warning, message, or other condition? |
Does code return a visible or invisible object? |
|
Does code print output to the console? |
|
Does code execute silently? |
|
Locally set options for maximal test reproducibility |
|
Snapshot testing |
|
|
Snapshot testing |
|
Snapshot testing for whole files |
Snapshot management |
|
Test helpers |
|
Determine testing status |
|
|
Skip a test |
Run code after all test files |
|
Run tests |
|
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 all tests in a single file |
|
Run all tests in a package |
|
Locate file in testing directory. |
|
Run a test |
|
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. |