Lightweight and Feature Complete Unit Testing Framework

Provides a lightweight (zero-dependency) and easy to use unit testing framework. Main features: install tests with the package. Test results are treated as data that can be stored and manipulated. Test files are R scripts interspersed with test commands, that can be programmed over. Fully automated build-install-test sequence for packages. Skip tests when not run locally (e.g. on CRAN). Flexible and configurable output printing. Compare computed output with output stored with the package. Run tests in parallel. Extensible by other packages. Report side effects.


News

version 0.9.3

  • New function 'expect_identical'
  • All functions of the form 'expect_lol' can now also be called as 'checkLol' (similar to, but not the same as 'RUnit' syntax)
  • Expect_* functions now have first argument 'current' and second argument 'target'
  • Added 'summary' method for objects of class 'tinytests'
  • Default test directory is now 'inst/tinytest'
  • Fix: 'as.data.frame' crashed on tinytests object with all tests passing.

version 0.9.2

  • Processed review by CRAN team member.
  • Output coloring is now optional.
  • Fixed issue so package works correctly with r-oldrel.

version 0.9.1

  • Fixed a few CRAN warnings.

version 0.9.0

  • Initial release.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.