tests/testthat.R

library(testthat)
library(mbtools)

if (requireNamespace("xml2")) {
    test_check(
        "mbtools",
        reporter = MultiReporter$new(
            reporters = list(
                JunitReporter$new(file = "test-results.xml"),
                CheckReporter$new()))
    )
} else {
    test_check("mbtools")
}
Gibbons-Lab/mbtools documentation built on Jan. 28, 2024, 11:08 a.m.