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.1.8
R ≥ 3.1
Published 2023-05-04 30 days ago
Needs compilation? yes
License MIT
License File
CRAN checks testthat results

Downloads

Last 24 hours 0 -100%
Last 7 days 161.163 -26%
Last 30 days 875.081 -6%
Last 90 days 2.707.438 +60%
Last 365 days 9.675.170 +43%

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

Imports

brio
callr ≥ 3.5.1
cli ≥ 3.4.0
desc
digest
ellipsis ≥ 0.2.0
evaluate
jsonlite
lifecycle
magrittr
methods
pkgload
praise
processx
ps ≥ 1.3.4
R6 ≥ 2.2.0
rlang ≥ 1.1.0
utils
waldo ≥ 0.5.0
withr ≥ 2.4.3

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
Oscope
overlapping
pop.lion
shinytest2
testdat

Reverse Imports

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

Reverse Suggests

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

Reverse Enhances

this.path

Reverse LinkingTo

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