Skip to content

Document how to test a starlark function failure cases #580

@sitaktif

Description

@sitaktif

Testing fail() scenarii in plain starlark functions using the unittest library is not supported out of the box and requires wrapping the function into a rule and creating an analysis test for it.

This post was very helpful in showing how to achieve that, and it would be great to add that somewhere in the docs (e.g. with a link to an example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions