Skip to content

Improved mock generation #852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Un1oR opened this issue Apr 23, 2025 · 1 comment
Open

Improved mock generation #852

Un1oR opened this issue Apr 23, 2025 · 1 comment
Labels
good first issue Good for newcomers

Comments

@Un1oR
Copy link
Contributor

Un1oR commented Apr 23, 2025

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.

@Un1oR Un1oR added the good first issue Good for newcomers label Apr 23, 2025
@BenFaruna
Copy link

Is it okay if I take this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants