I raised the following as issue in github: Are the tests failed or not? · Issue #969 · r-lib/testthat · GitHub and was referred to post the question instead here. Any suggestions are welcome.
Hi team,
I am trying to translate the unittest elements from Python in R using testthat(). This is my test code in test_trick.R (similar test in test_magic.R):context("check the sum") library(testthat) test_that("check the sum", { expect_equal(trick(parse_line("D2.html")), 6972) } )
with the bash output as follows:
I read the
failed: 1
as the test results but there are no failed messages. That's why I do not get it whether the tests are failed or not.
AlsoNo one gets it right on their first try
is literally understood. What does it mean actually?