Skip to content

Commit

Permalink
Gazelle reports: add a success info if there are no messages
Browse files Browse the repository at this point in the history
Fixes #274
  • Loading branch information
qligier committed Sep 26, 2024
1 parent 15a8595 commit 3e1f10d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,17 @@ ValidationSubReport validateItem(final MatchboxEngine engine,
subReport.addUnexpectedError(new UnexpectedError().setMessage("Error during validation: %s".formatted(e.getMessage())));
}

// The EVSClient expects at lest one assertion report, otherwise it will show it as DONE_UNDEFINED (#274)
if (subReport.getAssertionReports().isEmpty()) {
subReport.addAssertionReport(
new AssertionReport()
.setResult(ValidationTestResult.PASSED)
.setSeverity(SeverityLevel.INFO)
.setPriority(RequirementPriority.MANDATORY)
.setDescription("No fatal or error issues detected, the validation has passed")
);
}

return subReport;
}

Expand Down

0 comments on commit 3e1f10d

Please sign in to comment.