/
Running tests locally

Running tests locally

Step 0 - Prerequisite

The test framework is installed.  More information can be found here: Installing the testing framework

Step 1 - Run the test

Option 1: R studio

  1. Build and clean the project (Build menu/ Clean and rebuild). 
  2. Run the test, by using the Test Package option, from the Build menu

Option 2: Console

  1. Change to root directory of R package to be tested
  2. Use devtools::test() to start testthat


Related content

Installing the testing framework
Installing the testing framework
More like this
Technical documentation
Technical documentation
More like this
How to run a single testthat test....
How to run a single testthat test....
More like this
Checking Test Coverage
Checking Test Coverage
More like this
"Testers" documentation
"Testers" documentation
More like this
The testing environment
The testing environment
More like this

DataSHIELD Wiki by DataSHIELD is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Based on a work at http://www.datashield.ac.uk/wiki