tests/testthat/_snaps/reporter-debug.md

produces consistent output

1: expect_true(FALSE)
2: expect_waldo_constant(act, TRUE, info = info, ignore_attr = TRUE)
3: expect(length(comp) == 0, sprintf("%s is not %s\n\n%s", act$lab, deparse(co

1: f()
2: expect_true(FALSE)
3: expect_waldo_constant(act, TRUE, info = info, ignore_attr = TRUE)
4: expect(length(comp) == 0, sprintf("%s is not %s\n\n%s", act$lab, deparse(co

1: stop("stop")

1: f()
2: g()
3: h()
4: stop("!")

1: skip("skip")

1: f()
2: warning("def")


Try the testthat package in your browser

Any scripts or data that you put into this service are public.

testthat documentation built on April 4, 2025, 1:08 a.m.