Skip to content

testthat

3.3.2

Unit Testing for R

11,990packages depend
12Mdownloads / year
84.8%test coverage
12/13checks pass

Overview

About
Maintained by Hadley WickhamFirst published 2009-11-1751 releasesCRAN page ↗GitHub ↗

Software testing is important, but, in part because it is frustrating and boring, many of us avoid it. 'testthat' is a testing framework for R that is easy to learn and use, and integrates with your existing 'workflow'.

Install

Health

CRAN checks
1ERROR12OK
Failing flavors
  • ERROR r-devel-windows-x86_64
Slowest check: 6.7 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.77
84.8%
Coverage · measured lines
100%
Documentation · exports
18
Dependencies · direct
Check history
  • ERROR2026-08-12
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-13
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-07-11
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 10 earlier snapshots
  • OK2026-05-30
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-28
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-04
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-20
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-04-15
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-12
    11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 286 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
98%
Documented parameters
80%
Return-value docs
18%
References docs
0%

Downloads

12M
CRAN downloads in the past year
Rank #63 · ~32.8K/day · ~996.8K/mo
Daily download trend is not available in this view yet.
993.5K30 days
3.2M90 days
12M1 year
Compare downloads with other packages →
Also on160.6K r2u93 autocran391.3K conda_forge266 bioconda856 c2d4u

Repository

Repository
939Stars
342Forks
22Open issues
4Open PRs
41Releases
2,629Commits
148Contributors
runit-testing
2,629 commits · Last activity 2026-07-06 · +0.9% stars, 30d

Stars over time

2025-08-07 · 8972026-08-14 · 939

Repository practices

Upstream repositoryBeta

11 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/r-lib/testthat on 2026-08-09.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Lint, format, editor (3)
AirVS CodeRStudio project
Show all practices
Coverage (2)
Codecov.covrignore
Governance and community (1)
CODEOWNERS
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Code & Tests

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (1)
Contributor · added in 2.0.0
Copyright holders (1)
Copyright holder, Funder · added in 3.1.8
Funders (1)
Copyright holder, Funder · added in 3.1.8
Listed in earlier versions (2)
no longer listed · 0.10.0 to 3.1.7
Package Timeline

51 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 3.3.2Latest
    2026-01-11 · current release · diff ↗
  • 3.3.1
    2025-11-25 · diff ↗
  • 3.3.0
    2025-11-13 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 3.2.3
    2025-01-13 · diff ↗
  • 3.2.2
    2024-12-10 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 3.2.1.1
    2024-04-14 · diff ↗
  • 3.2.1
    2023-12-02 · diff ↗
  • 3.2.0
    2023-10-06 · diff ↗
  • 3.1.10
    2023-07-07 · diff ↗
  • 3.1.9
    2023-06-16 · diff ↗
  • 3.1.8
    2023-05-04 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 3.1.7
    2023-03-12 · diff ↗
Show 55 earlier events
  • 3.1.6
    2022-12-10 · diff ↗
  • 3.1.5
    2022-10-08 · diff ↗
  • 3.1.4
    2022-04-26 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 3.1.3
    2022-03-29 · diff ↗
  • 3.1.2
    2022-01-20 · diff ↗
  • 3.1.1
    2021-12-03 · diff ↗
  • 3.1.0
    2021-10-04 · diff ↗
  • 3.0.4
    2021-07-01 · diff ↗
  • 3.0.3
    2021-06-17 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 3.0.2
    2021-02-14 · diff ↗
  • 3.0.1
    2020-12-17 · diff ↗
  • 3.0.0
    2020-10-31 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 2.3.2
    2020-03-02 · diff ↗
  • 2.3.1
    2019-12-01 · diff ↗
  • 2.3.0
    2019-11-05 · diff ↗
  • 2.2.1
    2019-07-25 · diff ↗
  • 2.2.0
    2019-07-22 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 2.1.1
    2019-04-24 · diff ↗
  • 2.1.0
    2019-04-23 · diff ↗
  • 2.0.1
    2018-10-13 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 2.0.0
    2017-12-13 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 1.0.2
    2016-04-23 · diff ↗
  • 1.0.1
    2016-04-21 · diff ↗
  • 1.0.0
    2016-04-14 · diff ↗
  • 0.11.0
    2015-10-14 · diff ↗
  • 0.10.0
    2015-05-22 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 0.9.1
    2014-10-01 · diff ↗
  • 0.9
    2014-09-22 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 0.8.1
    2014-02-22 · diff ↗
  • 0.8
    2014-02-20 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 0.7.1
    2013-03-27 · diff ↗
  • 0.7
    2012-06-27 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 0.6
    2011-12-30 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 0.5
    2011-06-01 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • 0.4
    2011-03-20 · diff ↗
  • R
    R 2.12.0 released · 2010-10-15
  • 0.3
    2010-08-31 · diff ↗
  • 0.2
    2010-07-25 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • 0.1.1
    2009-11-30 · diff ↗
  • 0.1
    2009-11-17
  • R
    R 2.10.0 released · 2009-10-26

Package metadata

First published
2009-11-17
Total releases
51 / 17 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
814 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("testthat")
Wickham, H., Posit Software, PBC, & R Core team. (2026). testthat: Unit Testing for R (Version 3.3.2) [Computer software]. https://doi.org/10.32614/CRAN.package.testthat

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 testthat version 3.3.2 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, 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