StackOverflow Questions for Tag: testthat

user16024709
user16024709

Reputation: 133

How can I mock a function globally using testthat?

Score: 1

Views: 47

Answers: 0

Read More
LocusClassicus
LocusClassicus

Reputation: 83

Using XML files with GradeR package in R: Error

Score: 0

Views: 22

Answers: 0

Read More
stakowerflol
stakowerflol

Reputation: 1079

Declare function before each unit test with testthat package

Score: 2

Views: 201

Answers: 0

Read More
Alex Coppock
Alex Coppock

Reputation: 2252

how to test behavior that depends on a package being installed or not

Score: 2

Views: 381

Answers: 3

Read More
wibeasley
wibeasley

Reputation: 5287

Retrieving expected data.frame for testthat expectation

Score: 1

Views: 1163

Answers: 2

Read More
Dubukay
Dubukay

Reputation: 2071

R CMD check cannot find packages during package build with _R_CHECK_DEPENDS_ONLY_ set to true

Score: 0

Views: 42

Answers: 0

Read More
Dan Chaltiel
Dan Chaltiel

Reputation: 8484

Is there a global equivalent to `testthat::local_reproducible_output()`?

Score: 0

Views: 25

Answers: 0

Read More
thothal
thothal

Reputation: 20329

Test shiny module: observer does not fire

Score: 2

Views: 41

Answers: 1

Read More
Ben Bolker
Ben Bolker

Reputation: 226007

confused by testthat and skip_on_cran()

Score: 13

Views: 685

Answers: 2

Read More
nya
nya

Reputation: 2250

Error: `x` not equal to `y`. Attributes: < Length mismatch: comparison on first 1 components

Score: 0

Views: 106

Answers: 2

Read More
smartse
smartse

Reputation: 1721

Testing async ExtendedTask with shinytest2

Score: 0

Views: 85

Answers: 1

Read More
Zach
Zach

Reputation: 30301

How do I determine which tests were skipped in testthat?

Score: 0

Views: 30

Answers: 0

Read More
David
David

Reputation: 10152

Use a different config::get config when using testthat

Score: 1

Views: 25

Answers: 0

Read More
Emil Lykke Jensen
Emil Lykke Jensen

Reputation: 409

How to replace internal packge data in R testthat

Score: 0

Views: 68

Answers: 1

Read More
BrodieG
BrodieG

Reputation: 52637

Is there something in testthat like expect_no_warnings()?

Score: 29

Views: 3308

Answers: 5

Read More
Manuel Teodoro
Manuel Teodoro

Reputation: 151

How to unit test call to quit?

Score: 2

Views: 44

Answers: 1

Read More
asachet
asachet

Reputation: 6921

Test package behaviour when suggested dependency is not installed with testthat

Score: 6

Views: 258

Answers: 1

Read More
Patrick
Patrick

Reputation: 1379

Error: "no current device to record from" for base R plot test in devtools::test()

Score: 0

Views: 140

Answers: 1

Read More
Bangyou
Bangyou

Reputation: 9816

How to add functions only for test in testthat for R?

Score: 0

Views: 39

Answers: 0

Read More
dia05
dia05

Reputation: 193

How to run a test file taking into account the functions

Score: 0

Views: 42

Answers: 0

Read More
PreviousPage 1Next