Closed sormuras closed 7 years ago
if you rename unit-testing-a to module-a, it will work as you want.
the convention is that if a module in test has the same name as the module in main, the tests will be merged.
Rename to src/test/module-a
and ~no~ with module-info.java
, right? Just copy it from the main module and add required test libraries?
The module-info.java of src/main/module-a and the module-info.java of src/test/module-a are merged when creating the test module.
The idea is that the module-info of src should only contains the source dependencies while the module-info of test should contains the test specific dependencies
Sometimes it's so easy to see ones' dreams come to existence.
pro should ship with in jdk-9!
Created https://youtrack.jetbrains.com/issue/IDEA-172647 ... hoping IDEA will adopt this useful convention.
While finding new ways and (initial) best practices on how to structure a modularized project I came up with this picture:
Why two test folders?
module-testing-a
: is a module, that requiresmodule-a
and executes tests against the published API ofmodule-a
unit-testing-a
: is a legacy-style, same-package overlay thing overmodule-a
that is using the same package structure asmodule-a
Is this configurable with pro? Or am I on a complete false track regarding (unit) testing?