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

feat: added support for excluding charts from testing #161

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RyanW8
Copy link

@RyanW8 RyanW8 commented May 22, 2023

Works as expected when I tested locally, I started writing tests but got confused about snapshot testing. Would appreciate any pointers!

@revolunet
Copy link

@RyanW8 whats the issue with tests ?

i can run that on my repo : helm unittest charts/* -u to run and update snapshots

here's an exemple test :

suite: test xxx
tests:
  - it: should render
    asserts:
      - template: deployment.yaml
        hasDocuments:
          count: 1
      - template: deployment.yaml
        matchSnapshot:
          path: spec

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.

None yet

2 participants