This directory contains code and data for testing popcycle.
Rscript tests/testthat.R
tests/testthat.R
will exit with non-zero status if any test fails or
experiences an error.tests/testthat/test_evaluate_last_file.R
. Let's say our current working directory in a terminal is the root of the repository working copy. We would run tests with Rscript tests/testthat.R
. Each test in tests/testthat/test_evaluate_last_file.R
runs with a working directory of tests/testthat/
, not the root of the repository working copy.INTRAVIS
can be tested to determine if the test is being run in Travis or locally. This can be useful to fence off tests that will always fail in Travis, for example code that uses more than one core with SNOW. INTRAVIS
is set to 1 in .travis.yml
. For example:if (Sys.getenv("INTRAVIS") != 1) {
# Test code that should only run locally
# ...
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.