[R] Approaches to using RUnit

A.J. Rossini rossini at blindglobe.net
Mon Aug 9 18:37:42 CEST 2004


Seth Falcon <sfalcon at fhcrc.org> writes:

> 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 such, that allows me to run all the unit tests in a given
> directory.

Hi Seth -

The version that I was working on (before the other folks released a
less eclectic and more functional/general package) had a

     testrunner(test=c("list","of","functions"),testall=FALSE)

API, along with a preliminary tcltk 

     GUIrunner() 

with a similar intended API.  I've been trying to find the initiative
to integrate (overlay) those tools with the current RUnit as an
add-on, but the difference is that I attached tests as S4 object
instantiations.

Stop by if you want to chat a bit about it.

best,
-tony

-- 
Anthony Rossini			    Research Associate Professor
rossini at u.washington.edu            http://www.analytics.washington.edu/ 
Biomedical and Health Informatics   University of Washington
Biostatistics, SCHARP/HVTN          Fred Hutchinson Cancer Research Center
UW (Tu/Th/F): 206-616-7630 FAX=206-543-3461 | Voicemail is unreliable
FHCRC  (M/W): 206-667-7025 FAX=206-667-4812 | use Email

CONFIDENTIALITY NOTICE: This e-mail message and any attachme...{{dropped}}




More information about the R-help mailing list