You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered the issue which I believe was reported and discussed numerous times. The problem occurs when interface that is getting mocked is residing in the same package where it is getting used. Fake implementations are generated perfectly but when I am trying to run the tests I am getting the following error:
imports github.com/ikolomiyets/test-project/internal/controllers/controllersfakes
imports github.com/ikolomiyets/test-project/internal/controllers: import cycle not allowed in test
It would be great to have a separate mode for this kind of mocks, so the fake implementations are generated into the same package into the file with _test.go suffix.
The text was updated successfully, but these errors were encountered:
I have encountered the issue which I believe was reported and discussed numerous times. The problem occurs when interface that is getting mocked is residing in the same package where it is getting used. Fake implementations are generated perfectly but when I am trying to run the tests I am getting the following error:
It would be great to have a separate mode for this kind of mocks, so the fake implementations are generated into the same package into the file with
_test.go
suffix.The text was updated successfully, but these errors were encountered: