search for: printhtmlprotocol

Displaying 3 results from an estimated 3 matches for "printhtmlprotocol".

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
2006 Feb 04
1
RUnit - need advice on a good directory structure or tips...
...brary("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 file sample ## ###############################################...
2006 Aug 05
1
R CMD check and RUnit
...uot;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="")) } ---------------------------------------------------------------------- PKG/inst/unitTests/Makefile ---------------------------------------------------------------------- PKG=PKG TOP=../../.. SUITE=doRUnit.R all: inst test...