Automated tests for conditional template rendering #199

Closed
opened 2021-06-30 13:58:23 +00:00 by justusbunsi · 1 comment
justusbunsi commented 2021-06-30 13:58:23 +00:00 (Migrated from gitea.com)

Sometimes, manually testing becomes a nightmare. Too many conditions, too much to think of for testing. Helm charts supporting various configuration combinations tend to introduce regression bugs with new features.

In "common" development, there are automated tests verifying a desired behavior. Same concept can be adopted to Helm charts.
There is an interesting blog post about BDD driven chart development and testing that sounds interesting.

We should consider evaluating the mentioned helm plugin for testing charts with a more up-to-date fork of the mentioned repository.

If this works for us, we can easily write those tests and add them to the drone build.

Sometimes, manually testing becomes a nightmare. Too many conditions, too much to think of for testing. Helm charts supporting various configuration combinations tend to introduce regression bugs with new features. In "common" development, there are automated tests verifying a desired behavior. Same concept can be adopted to Helm charts. There is an interesting [blog post](https://medium.com/@gcavalcante8808/builtin-quality-for-helm-charts-unit-testing-to-the-rescue-2cb9d5c1ddc8) about BDD driven chart development and testing that sounds interesting. We should consider evaluating the mentioned helm plugin for testing charts with a [more up-to-date fork](https://github.com/quintush/helm-unittest) of the mentioned repository. If this works for us, we can easily write those tests and add them to the drone build.
viceice commented 2023-03-07 12:49:48 +00:00 (Migrated from gitea.com)

The most up-to-date version is now https://github.com/helm-unittest/helm-unittest again ?

The most up-to-date version is now https://github.com/helm-unittest/helm-unittest again ?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunny/helm-chart#199
No description provided.