[question]: Skip Coverage Calculation for Mock Files #1088
Unanswered
khareyash05
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am creating mocks for my unit tests, since I am using
--inpackage, the mocks are created in the same package. I want to ignore these mocks files for coverage calculation ->I found out
--testonlywill skip coverage check, but here is the problem,the flag will generate mocks in _test.go format, which will not be able to be accessed from outside
Is there any workaround this?
Beta Was this translation helpful? Give feedback.
All reactions