-
Notifications
You must be signed in to change notification settings - Fork 3
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
test(render): add integration tests to check rendering output #118
Conversation
- all folders in example folder are considered a myks rendered repository. - every change, which is change the rendered output must commit the changes as part of the PR, otherwise the test will fail
Workaround for #91. The integration tests needs a clean git state.
Output was not rerendered after renaming.
cmd/all.go
Outdated
log.Fatal().Err(err).Msg("Root directory is not suitable for myks") | ||
} | ||
|
||
log.Info().Msg("Init################") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it leftovers after debugging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove it and merge.
cmd/all.go
Outdated
log.Fatal().Err(err).Msg("Root directory is not suitable for myks") | ||
} | ||
|
||
log.Info().Msg("Init################") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove it and merge.
Great work, thanks a lot! |
All folders in example folder are considered a myks rendered repository.
The test in internal/integration/ will rerender all envs and applications. Nothing should be changed afterwards.
This enforces that every PR will contain all the introduced changes in the rendered output (breaking change) as part of the PR.
This PR is huge due to the examples folders. The examples should be save to be ignored for now.