Skip to content

Commit

Permalink
Update return code to avoid failing with empty shards
Browse files Browse the repository at this point in the history
  • Loading branch information
lukfor committed May 24, 2024
1 parent f837d09 commit 01eb3da
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ public Integer execute() throws Exception {

if (scripts.isEmpty()) {
System.out.println(AnsiColors
.red("Error: No tests or test directories containing scripts that end with *.test provided."));
log.error("No tests ot directories found containing test files.");
return 2;
.yellow("No tests to execute."));
log.warn("No tests or directories found containing test files. Or all testcases were filtered.");
return 0;
} else {
log.info("Detected {} test files.", scripts.size());
}
Expand Down

0 comments on commit 01eb3da

Please sign in to comment.