Skip to content

Commit 4d6c928

Browse files
committed
if no pass or fail test results found. error when running tests. Ex: complete install failure
1 parent 33e0aa0 commit 4d6c928

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/test-in-local.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ assert_test_output <- function(output) {
255255
display_message("App test failures", ci_status$fail, include_result = TRUE)
256256
display_message("Apps which could NOT be tested", ci_status$no_install, include_result = TRUE)
257257

258+
# Cover case of complete install failure for all apps
259+
if (!any(test_dt$status %in% c(ci_status$pass, ci_status$fail))) {
260+
stop("No test results found!")
261+
}
262+
258263
if (any(test_dt$status %in% ci_status$fail)) {
259264
stop(
260265
concat_info("Failures detected in:", c(ci_status$fail), include_result = FALSE)

0 commit comments

Comments
 (0)