tests/testthat/_snaps/skip.md

basic skips work as expected

Reason: Skipping
Reason: TRUE is TRUE
Reason: FALSE is not TRUE
Reason: empty test

autogenerated message is always single line

Reason: a_very_long_argument_name || a_very_long_argument_name || a_very_long_argument_name || 
    a_very_long_argument_name || a_very_long_argument_name || 
    a_very_long_argument_name || a_very_long_argument_name || 
    a_very_long_argument_name || a_very_long_argument_name || 
    a_very_long_argument_name || a_very_long_argument_name || 
    a_very_long_argument_name || a_very_long_argument_name || 
    a_very_long_argument_name is not TRUE

skip_if_not_installed() works as expected

Reason: doesntexist cannot be loaded
Reason: Installed testthat is version 3.0.0; but 9999.9999.999 is required
Reason: offline

skip_on_cran() works as expected

Reason: On CRAN

skip_on_ci() works as expected

Reason: On CI

skip_on_covr() works as expected

Reason: On covr

skip_on_bioc() works as expected

Reason: On Bioconductor

superseded CI skips still work

Reason: On Travis
Reason: On Appveyor

skip_if_translated() works as expected

Reason: "'%s' not found" is translated

skip on os checks os names

Code
  skip_on_os("amiga")
Condition
  Error in `match.arg()`:
  ! 'arg' should be one of "windows", "mac", "linux", "solaris"

can skip on multiple oses

Reason: On Windows
Reason: On Windows

can refine os with arch

Reason: On Windows
Reason: On Windows i386


Try the testthat package in your browser

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

testthat documentation built on Oct. 6, 2023, 5:10 p.m.