Skip to content

Commit

Permalink
[188815240]: print junit to log
Browse files Browse the repository at this point in the history
  • Loading branch information
gergness committed Jan 27, 2025
1 parent 4262f2d commit de5f95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test-ci: compress-fixtures |
R --slave -e 'library(covr); install_dir <- tempfile(); test_run <- try(to_cobertura(package_coverage(quiet=FALSE, install_path=install_dir, clean=FALSE))); for (file in list.files(install_dir, pattern = "\\.Rout(\\.fail)?$$", recursive=TRUE, full.names=TRUE)) { cat(readLines(file), sep = "\n"); cat("\n") }; if (inherits(test_run, "try-error")) stop("Test failed!\n", attr(test_run, "condition")[["message"]], "\n", format(attr(test_run, "condition")[["call"]]))'

test-ci-partial: compress-fixtures |
cd tests/ && R --slave -e 'library(devtools); library(testthat); test(filter="${file_regex}", reporter = MultiReporter$$new(list(SummaryReporter$$new(), JunitReporter$$new(file = file.path(Sys.getenv("WORKSPACE"), "rcrunch.xml")))))'
cd tests/ && R --slave -e 'library(devtools); library(testthat); test(filter="${file_regex}", reporter = MultiReporter$$new(list(SummaryReporter$$new(), JunitReporter$$new(file = file.path(Sys.getenv("WORKSPACE"), "rcrunch.xml"))))); cat("\n---\nPRINTING JUNIT FILE at ", file.path(Sys.getenv("WORKSPACE"), "rcrunch.xml"), "\n---\n", paste0(readLines(file.path(Sys.getenv("WORKSPACE"), "rcrunch.xml"))), "\n---\n")'

clean:
R --slave -e 'library(crunch); set_crunch_opts(crunch.api=envOrOption("test.api"), crunch.api.key=envOrOption("crunch.test.api.key")); lapply(urls(datasets()), crDELETE)'
Expand Down

0 comments on commit de5f95e

Please sign in to comment.