Lets say i have 3 modules:
core-module
– core module for projectcommunication-api
– api module exposing API’s for communication servicescommunication-msg-impl
– concrete implementation for communication-api ( one of few )
Now core-module
has dependency to communication-api
in base, when using this core-module
for concrete project, user adds dependency to one of communication-api
‘s implementations to the project.
communication-msg-impl
has dependency to communication-api
I want to create test that tests whole flow when core-module
uses communication-msg-impl
, however this test would need to be in module-core
package, since it requires functionality from the module, but that would mean i need to add dependency to communication-msg-impl
to it. Which is not wanted behavior.
Is it good practice to create whole different module just for these integration tests?
I can have multiple communication-msg-impl
modules ( each for different implementation) so it would mean i would need to create new “testing” module for each implementation.
Thanks for answers