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 deleted]]
Le 22/04/10 02:19, Dominick Samperi a ?crit :> > 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.How do you define 'testsuite.math'. The default value of the testFileRegexp argument in defineTestSuite should rule these files out. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/9aKDM9 : embed images in Rd documents |- http://tr.im/OIXN : raster images and RImageJ |- http://tr.im/OcQe : Rcpp 0.7.7
Romain has already given you the answer. As would have the help page ?defineTestSuite Not a bug, but a user error, I assume. Matthias Dominick Samperi wrote, On 04/22/10 02:19:> 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 deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- Matthias Burger Project Manager/ Biostatistician Epigenomics AG Kleine Praesidentenstr. 1 10178 Berlin, Germany phone:+49-30-24345-0 fax:+49-30-24345-555 http://www.epigenomics.com matthias.burger at epigenomics.com -- Epigenomics AG Berlin Amtsgericht Charlottenburg HRB 75861 Vorstand: Geert Nygaard (CEO/Vorsitzender) Oliver Schacht PhD (CFO) Aufsichtsrat: Prof. Dr. Dr. hc. Rolf Krebs (Chairman/Vorsitzender)