You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is intended or not, but I noticed that with the current development version of testthat tests are not reported (e.g. with the little .) when not wrapped in test_that().
Is this a regression or intended behavior?
Repro:
cd$TMPDIR
rm -rf hellotestthat
R -e 'devtools::create("hellotestthat")'cd hellotestthat
R -e 'devtools::use_testthat()'echo -e 'context("Hello")\nexpect_true(TRUE)\n'> tests/testthat/test-hello.R
R -e 'devtools::test()'
The current code makes sure that errors and skips do not propagate beyond the test_that() block. I guess we need a second, thinner withCallingHandlers() in test_file() (and probably elsewhere) if we want the dots in "bare" expectations.
Not sure if this is intended or not, but I noticed that with the current development version of
testthat
tests are not reported (e.g. with the little.
) when not wrapped intest_that()
.Is this a regression or intended behavior?
Repro:
With old testthat:
New testthat:
The text was updated successfully, but these errors were encountered: