File: junit-testthat.R

package info (click to toggle)
r-cran-usethis 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,228 kB
  • sloc: sh: 26; makefile: 17; cpp: 6; ansic: 3
file content (8 lines) | stat: -rw-r--r-- 257 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
library(testthat)
library({{{ name }}})

if (requireNamespace("xml2")) {
  test_check("{{{ name }}}", reporter = MultiReporter$new(reporters = list(JunitReporter$new(file = "test-results.xml"), CheckReporter$new())))
} else {
  test_check("{{{ name }}}")
}