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
While writing a test if I made a typo and used testthat instead of test_that( doc) it will fail the test, but calling all_passed on the test result will return TRUE.
For example if I write the test as follows -
testthat("sample", {
expect_equal(1, 1)
})
and run the test with res<-test_dir("R-package/tests/testthat") then it will fail with syntax errors, as expected, but calling testthat:::all_passed(res) will return TRUE.
The text was updated successfully, but these errors were encountered:
While writing a test if I made a typo and used
testthat
instead oftest_that
( doc) it will fail the test, but callingall_passed
on the test result will return TRUE.For example if I write the test as follows -
testthat("sample", { expect_equal(1, 1) })
and run the test with
res<-test_dir("R-package/tests/testthat")
then it will fail with syntax errors, as expected, but callingtestthat:::all_passed(res)
will return TRUE.The text was updated successfully, but these errors were encountered: