Closed etiennebacher closed 3 weeks ago
I can confirm that this workflow is broken. The way to make this work is to use testthat::test_dir()
with options(warn = 2L)
. But this causes problems if parallel testing is turned on, which I suspect is a bug in {testthat}
.
Bug report filed upstream https://github.com/r-lib/testthat/issues/1912
Following https://github.com/easystats/datawizard/pull/465, I removed all tests but one in
datawizard
and put awarning()
call inside:Then I ran:
and it showed a test warning but not a failure:
Replacing
warning()
bystop()
correctly shows a test failure.