Skip to content

tinytest

1.4.3Package record

Lightweight and Feature Complete Unit Testing Framework

7packages dependsuggested by 458
752.6Kdownloads / year
70.2%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.4.3
  • tt.pr.color is now set to FALSE when the NO_COLOR environment variable is set. See https://no-color.org/
  • expect_<condition> now uses conditionMessage internally. This should increase compatibility with packages defining custom conditions. (thanks to Tim Taylor for suggesting and Etienne Bacher for reporting)
  • expect_match is now available when testing packages (thanks to Tim Taylor for the PR and Marcel Ramos for reporting)
  • fix in pattern matching for warnings (thanks for Matthijs Berends for the PR)
  • Fixed exit_if_not() that would always exit (thanks to Vincent Arel-Bundock for reporting)

From NEWS in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.6 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.4.3
READMEYes · 978 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 1.4.3Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
20 (2 internal)
Examples that run
72%13 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran) · 4 never run
Exported functions with examples
89%
Documented parameters
92%
Return-value docs
68%
Help pages citing references
0%

Downloads

752.6K
CRAN downloads in the past year
Rank #424 · ~2.1K/day · ~62.7K/mo
Daily download trend is not available in this view yet.
54.2K30 days
196.9K90 days
752.6K1 year
Compare downloads with other packages →
Also on15.4K r2u223 autocran3.1K conda_forge166 c2d4u

Repository

245Stars
21Forks
33Open issues
6Open PRs
0Releases
470Commits
15Commit identities
License file reads as GPL-3.0 · 470 commits · Last activity 2026-03-21 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
93%
Median days to close, 50 most recently updated closed issues
8
Median days to close, 50 most recently updated closed PRs
2

Stars over time

2025-10-07 · 2312026-09-13 · 245
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/markvanderloo/tinytest on 2026-10-22.

Reproducibility and dev environment (1)
Makefile
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
0 external dependencies (excludes base and recommended)

Installing tinytest adds no packages beyond those that come with R.

Depends (1)
R >= 3.0.0
Imports (2)
parallelutils
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none

People & History

People (1)
Author, Maintainer since 0.9.2 (2019)
Releases (14)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.4.3Latest
    record
    2026-03-24 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.4.1
    record
    2023-02-22 · diff ↗ ·
    added 3 exports
    exit_if_not, expect_length, expect_match
  • R
    R 4.2.0 released · 2022-04-22
  • 1.3.1
    record
    2021-07-06 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.2.4
    record
    2020-12-17 · diff ↗ ·
    added 1 export
    expect_inherits
  • 1.2.3
    record
    2020-10-07 · diff ↗
  • 1.2.2
    record
    2020-06-18 · diff ↗
  • 1.2.1
    record
    2020-05-18 · diff ↗
  • 1.2.0
    record
    2020-05-06 · diff ↗ ·
    added 4 exports
    expect_equal_to_reference, expect_equivalent_to_reference, expect_stdout, get_call_wd
  • R
    R 4.0.0 released · 2020-04-24
  • 1.1.0
    record
    2019-09-26 · diff ↗
Show 7 earlier eventsHide 7 earlier events
  • 1.0.0
    record
    2019-08-23 · diff ↗ ·
    added 6 exports
    exit_file, expect_null, puppy, register_tinytest_extension, report_side_effects, using
  • 0.9.6
    record
    2019-06-28 · diff ↗ ·
    added 6 exports
    all_fail, all_pass, any_fail, any_pass, expect_message, expect_silent
  • 0.9.4
    record
    2019-06-05 · diff ↗ ·
    added 1 export
    setup_tinytest
  • 0.9.3
    record
    2019-05-10 · diff ↗ ·
    added 1 export
    expect_identical
  • R
    R 3.6.0 released · 2019-04-26
  • 0.9.2
    record
    2019-04-25
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-04-25
Total releases
14 / 7 yrs
License
GPL-3 OSI
Minimum R
≥ 3.0.0
Download size
582 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("tinytest")

The package provides a citation file, so citation() returns the authors' own entry.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for tinytest version 1.4.3 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy