tests/testthat.R

ops <- options("crayon.enabled" = FALSE, warn = 1)
library(testthat)
library("covr")

# Skip tests on Solaris as gcc is not in the PATH and I do not have an easy way
# to mimic the CRAN build environment
if (!tolower(Sys.info()[["sysname"]]) == "sunos") {
  Sys.setenv("R_TESTS" = "")
  test_check("covr")
}

options(ops)
r-lib/covr documentation built on April 9, 2024, 2:14 p.m.