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.


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: '' 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.


1.3.1 by Mark van der Loo, 3 months ago

Report a bug at

Browse source code at

Authors: Mark van der Loo [aut, cre]

Documentation:   PDF Manual  

GPL-3 license

Imports parallel, utils

Imported by epidata, gdns, packager, ttdo.

Suggested by AMR, BEDMatrix, BVAR, BVARverse, ChemoSpec, ChemoSpec2D, ChemoSpecUtils, DTSg, LinkedMatrix, NMOF, ODataQuery, OmicNavigator, PMwR, PerformanceAnalytics, QDiabetes, RProtoBuf, RQuantLib, Rblpapi, Rcpp, RcppAnnoy, RcppArmadillo, RcppCCTZ, RcppClassic, RcppDynProg, RcppEigen, RcppFastFloat, RcppGSL, RcppRedis, RcppSimdJson, RcppTOML, RcppUUID, RestRserve, WVPlots, amt, anytime, bdots, benchr, blavaan, bootGOF, bspm, cartography, catalog, cdata, ced, checkmate, cit, comat, comprehenr, crochet, cronR, ctrdata, datetimeutils, dauphin, dcmodify, deductive, digest, diveMove, docxtractr, ergmito, ess, exiftoolr, fastshap, faviconPlease, flexiblas, fmcmc, fritools, fwildclusterboot, gbm, geojsonsf, geometries, ggprism, gimms, gower, grpreg, gtfsio, gtrendsR, hashr, hutilscpp, imbibe, inline, interleave, intsurv, isatabr, jti, languageserversetup, linemap, lintools, longurl, lumberjack, maditr, mapsf, maptiles, mapview, maxLik, merDeriv, mmand, mschart, nanotime, ncvreg, ndjson, neverhpfilter, nngeo, od, ore, osrm, owd, phangorn, phosphoricons, phyloregion, pkgKitten, pluralize, poorman, potential, qpmadr, quadprogXT, rassta, raster, rdbnomics, reda, replacer, restatapi, rgexf, rlas, roundhouse, roxut, roxytest, rqdatatable, rquery, rspa, runner, seplyr, sergeant, settings, sigr, simTool, simputation, slurmR, sparta, spdep, spflow, spiderbar, splines2, starsExtra, statebins, statgenGWAS, statgenHTP, statgenIBD, stringdist, surveillance, symDMatrix, td, terra, textutils, tiledb, track2KBA, tsdb, uaparserjs, uchardet, ulid, validate, vegperiod, vip, vtreat, wand, wooldridge, wrapr.

See at CRAN