Devtools comes with some simple packages for testing. This function returns the path to them.
devtest(package)
package
Name of the test package.
if (has_tests()) { devtest("testData") }