tests/testthat.R

library(testthat)
library(iai)


reporters <- c("check")


# Configure junit if JUNIT_PATH is set
junit_path <- Sys.getenv("JUNIT_PATH", unset = NA)
if (!is.na(junit_path)) {
  options(testthat.output_file = Sys.getenv("JUNIT_PATH"))
  reporters <- c(reporters, "junit")
}


test_check("iai", reporter = reporters)

Try the iai package in your browser

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

iai documentation built on July 9, 2023, 5:41 p.m.