quintush / helm-unittest

BDD styled unit test framework for Kubernetes Helm charts as a Helm plugin.
MIT License
345 stars 69 forks source link

Coverage Report - Roadmap #59

Open snachiap opened 4 years ago

snachiap commented 4 years ago

Hi Quintus,

Thank you for sharing a really useful library for Helm Unit tests.

Just wondering if it is possible to ,

If not in plan/roadmap to implement, please close the issue as this is not a pressing issue.

Again, thanks for the library

quintush commented 4 years ago

Hello @snachiap ,

Thanks for the suggestions.

I would love to have code coverage for the templates, however to make that happen a new helm engine must be created. To enable coverage the original templates must be instrumented and the engine must identify the instrumentation in order to calculated which parts are hit and which are not. Following article gives a good explanation on how they have done it in go, and a similar solution should be created for helm.

For test the values yaml with schema i could be an option to have an validator for that. I will keep the ticket open and see if I can find a suitable implementation.

Greetings, @quintush