Skip to content

Improved mock generation #852

@Un1oR

Description

@Un1oR

We are currently using matryer/moq in conjunction with //go:generate and Makefile. The generated files don't have the //go:build test annotation, so they end up in the application executable, which is not necessary. As far as I can tell, matryer/moq doesn't have a setting to fix this. We might consider mockery, which looks more flexible and is also centrally configurable via yaml-config.

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