-
Notifications
You must be signed in to change notification settings - Fork 10
Test style change #60
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
base: main
Are you sure you want to change the base?
Conversation
|
Proposition 1: basically use bats syntax better. use Everything printed in the test will be output when the test fails, so feel free to produce nice error messages. Every line need to succeed for the test to succeed, so adding multiple commands to test things in a single test is OK as long as it makes sense. |
|
The second commit is not finished. It's just a suggestion to have a bash function to create a shorter "helm template test", since that's most of the tests. (it is what breaks tests right now in this PR) |
| } | ||
|
|
||
| helm_template_compare { | ||
| local valuefile="${BATS_TMPDIR}/values-${BATS_TEST_NUMBER}" |
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.
smart!
|
@briiians ^ this should simplify your tests |
Co-authored-by: briiians <[email protected]>
Test ergonomics aren't great, so let's improve it.