Skip to content

Commit

Permalink
if no pass or fail test results found. error when running tests. Ex: …
Browse files Browse the repository at this point in the history
…complete install failure
  • Loading branch information
schloerke committed Sep 9, 2024
1 parent 33e0aa0 commit 4d6c928
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/test-in-local.R
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ assert_test_output <- function(output) {
display_message("App test failures", ci_status$fail, include_result = TRUE)
display_message("Apps which could NOT be tested", ci_status$no_install, include_result = TRUE)

# Cover case of complete install failure for all apps
if (!any(test_dt$status %in% c(ci_status$pass, ci_status$fail))) {
stop("No test results found!")
}

if (any(test_dt$status %in% ci_status$fail)) {
stop(
concat_info("Failures detected in:", c(ci_status$fail), include_result = FALSE)
Expand Down

0 comments on commit 4d6c928

Please sign in to comment.