Scenario: Multi-module Maven project
Issue: Unit tests are only running for a single module.
Background: I'm attempting to separate my integration testing from unit testing. To do this I've created two properties in my parent pom, Root-module, that disable unit tests and integration tests by default.
<maven.test.skip>true</maven.test.skip>
<maven.integration.test.skip>true</maven.integration.test.skip>
In my top-most module, UI-module, I've created two profiles, dev and integration-test. Dev has unit tests enabled and integration-test has integrations enabled:
<profile>
....
<maven.test.skip>false</maven.test.skip>
</profile>
Integration-test works correctly. The dev profile only runs the unit-tests for the UI-module, which is where the pom.xml is located that contains these profiles.
How can I enable unit tests for all modules? Is the profile approach correct? If so, why isn't the value applied to other modules?