Skip to content

[feat]: Add testing bootstrap code for templates #1112

@uberspot

Description

@uberspot

Description of the feature

Hey legends! :)

We were using kapitan and got a request from some devs writing templates in it for a nice/quick way of testing template code.
Testing functionality is easy with a test target for example, but testing cases that should fail is trickier if you want kapitan compile to still compile all targets.
Is anyone else doing something similar?
Otherwise it sounds like a feature we could add to kapitan to e.g. call pytest if a flag is passed before compiling but after creating the inventory internally (?).

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions