tests/testthat/_snaps/reporter-tap.md

reporter works

1..9
# Context Successes
ok 1 Success
# Context Failures
not ok 2 Failure:1
  FALSE is not TRUE

  `actual`:   FALSE
  `expected`: TRUE 
not ok 3 Failure:2a
  FALSE is not TRUE

  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
   1. f() reporters/tests.R:17:2
   2. testthat::expect_true(FALSE) reporters/tests.R:16:7
# Context Errors
not ok 4 Error:1
  Error in `eval(code, test_env)`: stop
not ok 5 errors get tracebacks
  Error in `h()`: !
  Backtrace:
   1. f() reporters/tests.R:31:2
   2. g() reporters/tests.R:27:7
   3. h() reporters/tests.R:28:7
# Context Skips
ok 6 # SKIP Reason: skip
ok 7 # SKIP Reason: empty test
# Context Warnings
ok 8 # WARNING def
Backtrace:
 1. f() reporters/tests.R:49:2
ok 9 # SKIP Reason: empty test


Try the testthat package in your browser

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

testthat documentation built on Jan. 21, 2022, 1:10 a.m.