I am trying to follow the BioConductor RUnit guidelines. I have followed the the minimal setup so I have:
Suggests: RUnit, BiocGenerics
in DESCRIPTION
BiocGenerics:::testPackage("MyPackage")
in MyPackage/tests/runTests.R
and some test_XXX.R files in MyPackage/inst/unitTests/
If I run a single test files with:
library(RUnit)
source("LIBRARY FILES")
source("MyPackage/inst/unitTests/test_getKeywordValue.R")
test_getKeywordValue()
The test run (and fails when need to fail), but if I run
R CMD check MyPackage
The command say:
* checking tests ...
Running ‘runTests.R’
OK
But don't run my tests in MyPackage/inst/unitTests
directory...
What I missing?
Platform: x86_64-apple-darwin9.8.0
R version 2.15.2 (2012-10-26)