Skip to content

Commit 435db4c

Browse files
Enhance message for empty test results
Revised the message displayed when no tests are executed to include filters for test names and tags. This change provides more informative output, aiding in debugging and understanding the test context.
1 parent b359d8e commit 435db4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/eomasters/davalien/Davalien.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ public List<TestResult> execute() {
176176
*/
177177
public void createReport(List<TestResult> testResults) throws IOException {
178178
if (testResults.isEmpty()) {
179-
System.out.println("No tests executed.");
179+
System.out.printf("No tests executed. Filters[Test Names: %s, Tags: %s]%n",
180+
testNames != null ? String.join(",", testNames) : "-",
181+
tags != null ? String.join(",", tags) : "-");
180182
} else {
181183
TestReport testReport = new TestReport(testResults, this);
182184
System.out.println("Test Results:");

0 commit comments

Comments
 (0)