tests/testthat/_snaps/reporter-stop.md

produces useful output

Test passed 
-- Failure (tests.R:12:3): Failure:1 -------------------------------------------
FALSE is not TRUE

`actual`:   FALSE
`expected`: TRUE

-- Failure (tests.R:17:3): Failure:2a ------------------------------------------
FALSE is not TRUE

`actual`:   FALSE
`expected`: TRUE 
Backtrace:
 1. f()
 2. testthat::expect_true(FALSE)

-- Error (tests.R:23:3): Error:1 -----------------------------------------------
Error in `eval(code, test_env)`: stop

-- Error (tests.R:31:3): errors get tracebacks ---------------------------------
Error in `h()`: !
Backtrace:
 1. f()
 2. g()
 3. h()

-- Skip (tests.R:37:3): explicit skips are reported ----------------------------
Reason: skip

-- Skip (tests.R:40:1): empty tests are implicitly skipped ---------------------
Reason: empty test

-- Warning (tests.R:49:3): warnings get backtraces -----------------------------
def
Backtrace:
 1. f()

-- Skip (tests.R:45:1): warnings get backtraces --------------------------------
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.