Skip to content

Allow Generated Mocks to Accept Other Mock Interfaces as Input to Avoid Cyclic Imports #212

Answered by tulzke
kAvEh-- asked this question in Q&A
Discussion options

You must be logged in to vote

Possible solutions to the problem:

  1. Generate mocks to the same directory as interfaces.
  2. Use the _test postfix for package in tests. Then the dependency graph will look like this:
flowchart LR

some_package
mock --> some_package
some_package_test --> some_package
some_package_test --> mock
Loading

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kAvEh--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #208 on October 15, 2024 18:24.