[Rprotobuf-yada] package ready or unit tests
Dirk Eddelbuettel
edd at debian.org
Sat Dec 26 18:33:33 CET 2009
On 26 December 2009 at 18:16, Romain Francois wrote:
| I think this is the expected result. Currently I have a test that
| generates an error (in runit.error.R)
|
| test.error <- function(){
| stop( "boom" )
| }
|
| test.failure <- function(){
| checkEquals( 1, 2 )
| }
|
| so the test.error generates an error, which is picked up by RUnit.
|
| Then, the way R CMD check and RUnit are combined is to fail R CMD check
| if one unit test fails. not sure this is also the case for failures.
Ack -- but you need to catch that in try/catch or some other was as it does
trip up R CMD check which would make us fail the 'Kurt' test of admission at
CRAN :)
Dirk
--
Three out of two people have difficulties with fractions.
More information about the Rprotobuf-yada
mailing list