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
when running devtools:test() the test passes as expected. However, with the command covr::package_coverage() the test does not pass, apparently because the first assertion (FALSE == TRUE) is not evaluated. Changing the function fixes this, but is not in the spirit of testit:
Hi, not sure if this is really an error, but it seems to me like testit would intend to support this common setup:
The setup works well unless I use testit::assert on several lines, like in the testit README file
Example:
file R/myfuncs.R
test file tests/testthat/test.myfuncs.R
test_that("failFunc fails", { expect_error(failFunc()) })
when running
devtools:test()
the test passes as expected. However, with the commandcovr::package_coverage()
the test does not pass, apparently because the first assertion(FALSE == TRUE)
is not evaluated. Changing the function fixes this, but is not in the spirit of testit:Not sure if this is related to the way covr works or is part of the testit internals.
The text was updated successfully, but these errors were encountered: