[Logging-commits] r93 - pkg/tests
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Sep 20 10:17:29 CEST 2011
Author: mariotomo
Date: 2011-09-20 10:17:29 +0200 (Tue, 20 Sep 2011)
New Revision: 93
Modified:
pkg/tests/doSvUnit.R
Log:
using the new svUnit functionality
Modified: pkg/tests/doSvUnit.R
===================================================================
--- pkg/tests/doSvUnit.R 2011-09-05 08:13:27 UTC (rev 92)
+++ pkg/tests/doSvUnit.R 2011-09-20 08:17:29 UTC (rev 93)
@@ -1,7 +1,9 @@
#! /usr/bin/Rscript
require(svUnit) # Needed if run from R CMD BATCH
-require(logging)
+pkg <- "logging"
+require(pkg)
unlink("report.xml") # Make sure we generate a new report
-mypkgSuite <- svSuiteList("logging", dirs="../../pkg/inst/unitTest") # List all our test suites
-runTest(mypkgSuite, name = "logging") # Run them...
+mypkgSuite <- svSuiteList(pkg, dirs="../../pkg/inst/unitTest") # List all our test suites
+runTest(mypkgSuite, name = pkg) # Run them...
+runTest(makeTestListFromExamples(pkg, "../../pkg/man/"))
protocol(Log(), type = "junit", file = "report.xml") # ... and write report
More information about the Logging-commits
mailing list