On 01/18/2013 08:26 AM, Davide Rambaldi wrote:
Hello, I am trying to follow the bioconductor RUnit guidelines
(http://www.bioconductor.org/developers/unitTesting-guidelines/#duringDevelopment)
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()
To me this looks ok. Are you using R-devel and current packages (output of
sessionInfo())? After installing your package, does
R --vanilla -e " BiocGenerics:::testPackage('MyPackage')"
do the right thing? After running R CMD check, are there any hints in the file
MyPackage.Rcheck/tests/runTests.Rout
?
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)
Best Regards and thanks in Advance
-----------------------------------------------------------
PLEASE NOTE MY NEW EMAIL ADDRESS
-----------------------------------------------------------
-----------------------------------------------------
Davide Rambaldi, PhD.
-----------------------------------------------------
IEO ~ MolMed
[e] davide.ramba...@ieo.eu
[e] davide.ramba...@gmail.com
_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel
--
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109
Location: Arnold Building M1 B861
Phone: (206) 667-2793
_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel