How do you test the templates logic?

Hi, I’m looking for a tool to test the Hugo templates, something like unit test of programming language.

It would better that have the ability to test the template with different configuration and parameters to cover all use cases.