/
How to run a single testthat test....
How to run a single testthat test....
If you wish to run just one, or possible a small number of testthat tests you can use the filter argument of the devtools::test method
For example,
devtools::test(filter="smk-ds.dataFrame")
would run only the tests in test-smk-ds.dataFrame.R, whereas
devtools::test(filter="smk-ds.data")
would run the tests in any file with a matching "smk-ds.data", at the moment test-smk-ds.dataFrame.R, test-smk-ds.dataFrameSort.R and test-smk-ds.dataFrameSubset.R.
devtools::test(filter="smk-ds.table$")
would run the tests in any file with a matching "smk-ds.table$", at the moment test-smk-ds.table.R, but not test-smk-ds.table1D.R and test-smk-ds.table2D.R.
, multiple selections available,
Related content
Testing
Testing
More like this
Running tests locally
Running tests locally
More like this
Testing Framework
Testing Framework
More like this
Checking Test Coverage
Checking Test Coverage
More like this
The testing environment
The testing environment
More like this
Installing the testing framework
Installing the testing framework
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