/
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.
Related content
Installing the testing framework
Installing the testing framework
More like this
Technical documentation
Technical documentation
More like this
Classes of tests and naming convention
Classes of tests and naming convention
More like this
Running tests locally
Running tests locally
More like this
"Testers" documentation
"Testers" documentation
More like this
Checking Test Coverage
Checking Test Coverage
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