test_file
(Package: testthat) :
Run all tests in specified file.
Run all tests in specified file.
● Data Source:
CranContrib
● Keywords:
● Alias: test_file
●
0 images
|
test_path
(Package: testthat) :
Locate file in testing directory.
This function is designed to work both interatively and during tests, locating files in the tests/testthat directory
● Data Source:
CranContrib
● Keywords:
● Alias: test_path
●
0 images
|
try_again
(Package: testthat) :
Try evaluating an expressing multiple times until it succeeds.
Try evaluating an expressing multiple times until it succeeds.
● Data Source:
CranContrib
● Keywords:
● Alias: try_again
●
0 images
|
describe
(Package: testthat) :
describe: a BDD testing language
A simple BDD DSL for writing tests. The language is similiar to RSpec for Ruby or Mocha for JavaScript. BDD tests read like sentences and it should thus be easier to understand what the specification of a function/component is.
● Data Source:
CranContrib
● Keywords:
● Alias: describe
●
0 images
|
test_package
(Package: testthat) :
Run all tests in an installed package.
Test are run in an environment that inherits from the package's namespace environment, so that tests can access non-exported functions and variables. Tests should be placed in tests/testthat . Use test_check with R CMD check and test_package interactively at the console.
● Data Source:
CranContrib
● Keywords:
● Alias: test_check, test_package
●
0 images
|
fail
(Package: testthat) :
Default expectations that alway succeed or fail.
These allow you to manually trigger success or failure. Failure is particularly useful to a pre-condition or mark a test as not yet implemented.
● Data Source:
CranContrib
● Keywords:
● Alias: fail, succeed
●
0 images
|
find_reporter
(Package: testthat) :
Find reporter object given name or object.
If not found, will return informative error message. Pass a character vector to create a MultiReporter composed of individual reporters. Will return null if given NULL.
● Data Source:
CranContrib
● Keywords: internal
● Alias: find_reporter
●
0 images
|
compare_state
(Package: testthat) :
Compare two directory states.
Compare two directory states.
● Data Source:
CranContrib
● Keywords: internal
● Alias: compare_state
●
0 images
|
expect_length
(Package: testthat) :
Expectation: does a vector have the specified length?
Expectation: does a vector have the specified length?
● Data Source:
CranContrib
● Keywords:
● Alias: expect_length
●
0 images
|
This a convenience function to make a expectation that checks that input stays the same.
● Data Source:
CranContrib
● Keywords:
● Alias: make_expectation
●
0 images
|