[Rd] RUnit testing with R CMD check and more (was: R CMD check recursive copy of tests/)

From: Gorjanc Gregor <Gregor.Gorjanc_at_bfro.uni-lj.si>
Date: Wed, 05 Sep 2007 18:32:51 +0200


Hello!

I have looked at Martin's recent work on "merging" unit tests with R CMD check, fused it with my and Tony's contributions and developed it a bit further. Take a look into the attached demo package on how it works.

In essence:

PKG/inst/RUnitTests

          |- runRUnitTests.R (script to run RUnit tests)
          \- ...             (any RUnit test file)

PKG/R/runRUnitTests.R        (wrapper function to call PKG/inst/RUnitTests/runRUnitTests.R)
PKG/man/runRUnitTests.Rd     (help with examples! section)

The following can be achieved:

I would like to hear any critiques, comments, suggestions, ... on above. Martin mentioned (privately) that filenames have to much upper case letter, but I wanted to emphasize that the main work is being done by RUnit package - not developed by me!

Finnally, I would like to argue that from useRs point of view test and unit test are the same thing and I believe that R would benefit if *all* tests could be available in similar manner as above. This of course calls for the modification of packaging, testing, etc., but could provide more feedback (sure some of it will be bogous) on testing on various configurations.

With regards, Gregor



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 05 Sep 2007 - 16:40:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Sep 2007 - 18:41:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.