Question

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.)

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top