describe_it()
should set the test_code()
reporter like test_that()
#1782
Milestone
describe_it()
should set the test_code()
reporter like test_that()
#1782
testthat/R/describe.R
Line 76 in 4076b66
In bench there is this test, which I can't run interactively:
The problem is that
local_interactive_reporter()
isn't set up, which is what setsNOT_CRAN=true
, so the test fails inskip_on_cran()
because it "looks like we are on cran"test_that()
does this nice thing where if it detects that there is no reporter active, it sets up an interactive reporter for you, and I thinkdescribe_it()
(used by bothdescribe()
andit()
) should do the same thingtestthat/R/test-that.R
Lines 41 to 44 in 4076b66
That should mean you can run both the full
describe()
block and just anit()
block interactively and both should getNOT_CRAN=true
set up correctly.Hadley also mentioned during discussion about this:
Update: This part is solved by #1789
The text was updated successfully, but these errors were encountered: