tests/testthat.R

library(testthat)
library(azuretest)

if (requireNamespace("xml2")) {
  test_check("azuretest", reporter = MultiReporter$new(reporters = list(JunitReporter$new(file = "test-results.xml"), CheckReporter$new())))
} else {
  test_check("azuretest")
}
r-lib/r-azure-pipelines documentation built on Nov. 5, 2019, 2:01 a.m.