Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/improve api comparison test #832

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore(test): [#xxx] Improve assertion message
dsmf committed Jul 19, 2024

Verified

This commit was signed with the committer’s verified signature.
kaylareopelle Kayla Reopelle
commit 055ee66cd96466cbb25d8e663806d519f95d1331
Original file line number Diff line number Diff line change
@@ -107,7 +107,8 @@ void generatedOpenApiMatchesContract() throws Exception {
} catch (AssertionError e) {
// write changed API to file for easier comparison
Files.writeString(Paths.get("../docs/src/api/irs-api.actual.yaml"), generatedYaml);
throw e;
throw new AssertionError("Please compare the generated irs-api.actual.yaml "
+ "with irs-api.yaml to find the differences easily!", e);
}

}