Test Script Scripts R

Although tools like RUnit , svUnit and testthat are good for package developers, I think it would be useful to have some ways to load test scripts or even usage examples for specific packages. Users who perform continuous integration (such as Jenkins) or even basic unit testing may already have such tests and may find it appropriate to script for third-party package developers.

Is there such functionality, whether through CRAN or RForge, or through other sites like github? If so, then there is a basic example of using a repository, for example. github so users can submit tests?


(Thanks @mariotomo for reminding me of svUnit .)

+8
unit-testing r testing cran
source share
1 answer

I would advise you to refrain from unnecessary things. Why not just something like this:

  • Look at specific package sources (e.g. r-forge, rforge, github, ... or direct CRAN sources),

  • understand the testing scheme (for example, the tests/ directory, examples on the manual pages or one of the three structural test modules from CRAN) and

  • make new tests.

That is really all there is. The same goes for documentation, demo scripts, new code, ... We can and should focus on opening in open source.

+4
source share

All Articles