Displaying 4 results from an estimated 4 matches for "definetestsuit".
Did you mean:
definetestsuite
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
2006 Feb 04
1
RUnit - need advice on a good directory structure or tips...
...ry as that of test files.
3. In test files, use .setUp and .tearDown functions to properly modify
current working directory.
4. 'source' the source codes to test them.
This is pretty much restriction, and I want to reduce the number of
restrictions.
More specifically, if the function "defineTestSuite" support optionally
setting current working directory to that of test files, it would be great
help, because it can remove the need of placing both test files and suite
files in the same directory.
But the best solution is the way to get the path to the file of the current
file.
BTW, here is...
2006 Aug 05
1
R CMD check and RUnit
...standalone i.e. not by R CMD check testing
if(Sys.getenv("RCMDCHECK") == "FALSE") path <- "../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...