CRAN/E | testthat

testthat

Unit Testing for R

Installation

About

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

Citation testthat citation info
testthat.r-lib.org
github.com/r-lib/testthat
Bug report File report

Key Metrics

Version 3.2.1
R ≥ 3.6.0
Published 2023-12-02 1 day ago
Needs compilation? yes
License MIT
License File
CRAN checks testthat results

Downloads

Last 24 hours 0 -100%
Last 7 days 143.794 +5%
Last 30 days 561.135 -14%
Last 90 days 1.757.772 +1%
Last 365 days 8.009.206 -13%

Maintainer

Maintainer

Hadley Wickham

hadley@posit.co

Authors

Hadley Wickham

aut / cre

Posit Software
PBC

cph / fnd

R Core team

ctb

(Implementation of utils::recover())

Material

README
NEWS
Reference manual
Package source

Vignettes

Custom expectations
Running tests in parallel
Skipping tests
Snapshot tests
Special files
Test fixtures
testthat 3e

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

testthat archive

Depends

R ≥ 3.6.0

Imports

brio ≥ 1.1.3
callr ≥ 3.7.3
cli ≥ 3.6.1
desc ≥1.4.2
digest ≥ 0.6.33
evaluate ≥ 0.21
jsonlite ≥1.8.7
lifecycle ≥ 1.0.3
magrittr ≥ 2.0.3
methods
pkgload ≥ 1.3.2.1
praise ≥ 1.0.0
processx ≥ 3.8.2
ps ≥ 1.7.5
R6 ≥ 2.5.1
rlang ≥ 1.1.1
utils
waldo ≥ 0.5.1
withr ≥ 2.5.0

Suggests

covr
curl ≥ 0.9.5
diffviewer ≥ 0.1.0
knitr
rmarkdown
rstudioapi
shiny
usethis
vctrs ≥ 0.1.0
xml2

Reverse Depends

EBSeq
exactci
hedgehog
httptest
humanFormat
hySpc.testthat
kergp
miLAG
Oscope
overlapping
pop.lion
shinytest2
testdat

Reverse Imports

ACEsearch
ADAMgui
aprof
archetyper
async
atlas
atSNP
babsim.hospital
baggr
BallMapper
bedr
BloodGen3Module
ccrtm
cmdfun
CNVPanelizer
CytOpT
DamiaNN
DBItest
devtools
doctest
epos
EstimDiagnostics
EventStudy
FFTrees
flashr
flintyR
fmeffects
fPASS
GeoDiff
gesttools
gradeR
gwasrapidd
httptest2
hyperSpec
incgraph
IntLIM
IPDFileCheck
ivDiag
LedPred
levi
Mapinguari
markmyassignment
mcmcse
mcunit
metapower
microbial
microPop
MLSeq
mockery
modeltests
Load all 93 items
(warning: might lead to performance issues and take some time)

Reverse Suggests

abbreviate
ABCoptim
abdiv
abess
abglasso
abjutils
abn
ABPS
abseqR
abtest
AcademicThemes
academictwitteR
accessibility
accessrmd
accrualPlot
accucor
ace2fastq
ACEP
acepack
ACEsimFit
Achilles
acled.api
acnr
acro
acroname
actel
ActFrag
actilifecounts
activAnalyzer
activatr
activegp
ActivePathways
ActivityIndex
activPAL
actLifer
actogrammr
actuaryr
actxps
acumos
ACV
ACWR
adace
ADAM
adaptalint
adaptDiag
adaptMT
adaptr
adaR
adbcdrivermanager
adbcsqlite
Load all 9038 items
(warning: might lead to performance issues and take some time)

Reverse Enhances

this.path

Reverse LinkingTo

ANN2
batchmix
BayesMallows
biodb
biodbHmdb
biodbNci
catsim
CLVTools
elections.dtree
fastcpd
FSelectorRcpp
landsepi
mdgc
mmcif
mmrm
mssm
mvMAPIT
nloptr
nuggets
oeli
pedmod
psqn
RTCC
sbo
scPipe
seededlda
spectre
syntenet
tidysq
VAJointSurv