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

Golden file testing #148

Merged
merged 5 commits into from
Jul 22, 2024
Merged

Golden file testing #148

merged 5 commits into from
Jul 22, 2024

Conversation

EwenQuim
Copy link
Member

Adds golden file testing, and vacuum for schema validation.

This helps tracks the generated OpenAPI schema when making change on the generation

@EwenQuim EwenQuim changed the base branch from extras to main July 22, 2024 08:32
@EwenQuim EwenQuim mentioned this pull request Jul 22, 2024
@EwenQuim EwenQuim requested a review from rizerkrof July 22, 2024 08:51
mux.go Show resolved Hide resolved
openapi.go Show resolved Hide resolved
openapi.go Show resolved Hide resolved
@EwenQuim EwenQuim force-pushed the golden-file-testing branch from 0ed93c2 to d727b7a Compare July 22, 2024 10:59
@EwenQuim EwenQuim requested a review from dylanhitt July 22, 2024 11:00
@dylanhitt
Copy link
Collaborator

My only comment is we should probably add a check in the CI to ensure the golden-file is being updated. The CI check shouldn't update the file, but it would just fail until the author of the MR updated it.

@EwenQuim
Copy link
Member Author

If the golden file isn't updated and it should, the tests will fail, so no issue here :)

@EwenQuim EwenQuim force-pushed the golden-file-testing branch from d727b7a to fd0d577 Compare July 22, 2024 16:59
@EwenQuim EwenQuim merged commit 9a7875c into main Jul 22, 2024
4 checks passed
@EwenQuim EwenQuim deleted the golden-file-testing branch July 23, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants