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

test(render): add integration tests to check rendering output #118

Merged
merged 12 commits into from
Oct 30, 2023

Conversation

kbudde
Copy link
Member

@kbudde kbudde commented Oct 25, 2023

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.

- 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.
@kbudde kbudde linked an issue Oct 28, 2023 that may be closed by this pull request
cmd/all.go Outdated
log.Fatal().Err(err).Msg("Root directory is not suitable for myks")
}

log.Info().Msg("Init################")
Copy link
Member

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?

Copy link
Member

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 Show resolved Hide resolved
cmd/all.go Outdated Show resolved Hide resolved
cmd/all.go Outdated
log.Fatal().Err(err).Msg("Root directory is not suitable for myks")
}

log.Info().Msg("Init################")
Copy link
Member

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.

@Zebradil Zebradil enabled auto-merge (squash) October 30, 2023 21:01
@Zebradil
Copy link
Member

Great work, thanks a lot!

@Zebradil Zebradil merged commit b29f264 into dev Oct 30, 2023
5 checks passed
@Zebradil Zebradil deleted the testable-examples branch October 30, 2023 21:03
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.

Create examples folder and make it part of PR process
2 participants