From ripley at stats.ox.ac.uk  Sat Jun  7 06:49:06 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sat, 7 Jun 2008 05:49:06 +0100 (BST)
Subject: [Rd] Testing development code?
In-Reply-To: <4849B517.10008@pdf.com>
References: <484992EA.2040401@pdf.com>
	<alpine.LFD.1.10.0806062111430.16422@gannet.stats.ox.ac.uk>
	<4849B517.10008@pdf.com>
Message-ID: <alpine.LFD.1.10.0806070543310.28358@gannet.stats.ox.ac.uk>

On Fri, 6 Jun 2008, Spencer Graves wrote:

> Dear Prof. Ripley: 
> <in line> 
> Prof Brian Ripley wrote:
>> On Fri, 6 Jun 2008, Spencer Graves wrote:
>> 
>>> Hi, R Core Team:
>>>     How do you test the latest changes to the core R code?  Is it just "R 
>>> CMD check"?  Or do you use other tools, like the perl "prove" module?
>>>     I ask, because I'm about to start developing routine testing for other 
>>> (non-R) software, for which I can't do "R CMD check", and I'd like to know 
>>> what you do.
>> 
>> 'make check-devel', 'make check-all' and regression tests of (essentially) 
>> R CMD check over CRAN/BioC (the latter in arrears via daily checking unless 
>> the change is thought likely to break things).
>> 
>> If we were starting from scatch we would probably use a unit-testing 
>> framework such as provided by Runits.
>     How can I find information on 'Runits'?  Google led me to 
> 'http://en.wikipedia.org/wiki/Unit_test'.  The other hits I got did not seem 
> as informative as Wikipedia.

CRAN package RUnit and its vignette provides another slant.

>     Thanks for the reply.  This is helpful.      Spencer Graves
>> 
>> C-based projects often use DejaGnu and similar -- scripting languages 
>> usually use themselves to run their test suites.
>> 
>> 
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Testing development code?
Prof Brian Ripley