search for: runtestsuite

Displaying 5 results from an estimated 5 matches for "runtestsuite".

2010 Apr 22
2
RUnit bug?
There appears to be a bug in RUnit. Given a testsuite testsuite.math, say, when I run: runTestSuite(testsuite.math) this works fine, provided there are no extraneous files in the unit test subdirectory. But if there are any Emacs temp files (with names that end with '~') then runTestSuite gets confused and tries to run functions from the temp files as well. [[alternative HTML version...
2004 Aug 09
2
Approaches to using RUnit
Having used JUnit and PyUnit, I was pleased to see the release of the RUnit package on CRAN. I'm wondering if there are any RUnit users out there that would be willing to share some tips on how they organize their code to work with RUnit. Specifically, I'm wondering about the best way to load/import/source the functions to be tested. I would like to end up with a script, testall or some
2007 Aug 29
1
R CMD check recursive copy of tests/
>From NEWS of R v2.6.0 devel: o R CMD check now does a recursive copy on the 'tests' directory. However, R CMD check does not run *.R scripts in such subdirectories (as I thought/hoped for), only those directly under tests/, This may or may not be intentional. If true, maybe the above should be clarified as: o R CMD check now does a recursive copy on the 'tests' directory
2006 Feb 04
1
RUnit - need advice on a good directory structure or tips...
...## ################################################## library("RUnit") suite_foo <- defineTestSuite("foo", dirs = ".", testFileRegexp = "^test.+\\.r", testFuncRegexp = "^test.+" ) result_foo <- runTestSuite(suite_foo) printTextProtocol(result_foo) ## printHTMLProtocol(result_foo, fileName="result_foo.html") ## runTestFile("test_foo.r") ====================================================== ################################################## ## ../codes/foo.r ## ## A code...
2006 Aug 05
1
R CMD check and RUnit
...;../inst" path <- file.path(getwd(), path, testDir) pathReport <- file.path(path, "report") ## --- Testing --- ## Define tests testsuite.PKG <- defineTestSuite(name="PKG unit testing", dirs=path) ## Run tests <- runTestSuite(testsuite.PKG) ## Print results printTextProtocol(tests) printTextProtocol(tests, fileName=paste(pathReport, ".txt", sep="")) ## Print HTML version to a file printHTMLProtocol(tests, fileName=paste(pathReport, ".html", sep="")) } -----------------...