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

Print the rendered chart or section when failure #281

Open
cornfeedhobo opened this issue Jan 17, 2024 · 3 comments
Open

Print the rendered chart or section when failure #281

cornfeedhobo opened this issue Jan 17, 2024 · 3 comments

Comments

@cornfeedhobo
Copy link

I'm getting the strangest failures that only happen within unittest. When I feed the exact same values to helm, my renders are clean. I need a way to see what unittest is rendered, beyond the tiny little error message.

@quintush
Copy link
Contributor

Hello @cornfeedhobo,

Currently working on it.
Still have some issues with proper handling of feature flags, which is blocking this enhancement.

Greetings,
@quintush

@tewfik-ghariani
Copy link
Contributor

@cornfeedhobo would you like to share a reproducible scenario showcasing the failure you are facing? I would be interested in trying to help ^^

@cyfu
Copy link

cyfu commented Feb 18, 2024

@cornfeedhobo My workaround is to use the snapshot test.

tests:
  - it: should not change manifest
    templates:
      - deployment.yaml
    asserts:
      - matchSnapshot: {}

I put it as the first test case, and use helm unittest . -u to create a snapshot in the __snapshot__ folder, now I can check how the deployment.yaml is rendered by helm unittest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants