Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Contributing R test scripts

Although tools like RUnit, svUnit, and testthat are good for package developers, I think it would be useful to have some means of uploading test scripts or even just usage examples for particular packages. Users who do continuous integration (e.g. Jenkins) or even basic unit testing may already have such tests and could find it beneficial to contribute scripts for package maintainers' use.

Does such functionality exist, either through CRAN or RForge, or via other sites, such as github? If so, is there a major example of using a repository, e.g. github, to allow users to contribute tests?


(Thanks to @mariotomo for reminding me of svUnit.)

like image 929
Iterator Avatar asked Aug 25 '11 03:08

Iterator


1 Answers

I would suggest to refrain from overcomplicating things. Why not just something like this:

  • Look at a given package's sources (ie on r-forge, rforge, github, ... or straight CRAN sources),

  • understand its testings scheme (ie tests/ directory, examples in manual pages, or one of the three unit testing frameworks from CRAN), and

  • contribute new tests.

That's really all there is too it. Same for contributing documentation, demo scripts, new code, .... We can and should focus on the open in open source.

like image 74
Dirk Eddelbuettel Avatar answered Oct 17 '22 11:10

Dirk Eddelbuettel