ci.maven
ci.maven copied to clipboard
Tests for all modules run when on Java file change with feature generation and hotTests enabled
To reproduce Using the https://github.com/openliberty/guide-maven-multimodules project
- Start dev mode
mvn liberty:dev -DhotTests
with3.6-SNAPSHOT
of Liberty Maven Plugin - Make a java file change to the /war directory, notice that the tests run for the jar, war and ear modules:
[INFO] Tests will run automatically when changes are detected. You can also press the Enter key to run tests on demand.
[INFO] guide-maven-multimodules-war source compilation was successful.
[INFO] guide-maven-multimodules-ear tests compilation was successful.
[INFO] Running liberty:generate-features
[INFO] [AUDIT ] CWWKT0017I: Web application removed (default_host): http://192.168.0.19:9080/converter/
[INFO] [AUDIT ] CWWKZ0009I: The application guide-maven-multimodules-ear has stopped successfully.
[INFO] [AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.0.19:9080/converter/
[INFO] [AUDIT ] CWWKZ0003I: The application guide-maven-multimodules-ear updated in 0.385 seconds.
[INFO] Regenerated the following features: [cdi-2.0, mpHealth-3.1, jaxrs-2.1]
[INFO] Running unit tests for guide-maven-multimodules ...
[INFO] No tests to run.
[INFO] Unit tests for guide-maven-multimodules finished.
[INFO]
[INFO] Running integration tests for guide-maven-multimodules...
[INFO] No tests to run.
[INFO] Integration tests for guide-maven-multimodules finished.
[INFO]
[INFO] Running unit tests for guide-maven-multimodules-jar ...
[INFO] No tests to run.
[INFO] Unit tests for guide-maven-multimodules-jar finished.
[INFO]
[INFO] Running integration tests for guide-maven-multimodules-jar...
[INFO] No tests to run.
[INFO] Integration tests for guide-maven-multimodules-jar finished.
[INFO]
[INFO] Running unit tests for guide-maven-multimodules-war ...
[INFO] No tests to run.
[INFO] Unit tests for guide-maven-multimodules-war finished.
[INFO]
[INFO] Running integration tests for guide-maven-multimodules-war...
[INFO] No tests to run.
[INFO] Integration tests for guide-maven-multimodules-war finished.
[INFO]
[INFO] Running integration tests for guide-maven-multimodules-ear...
Expected behaviour
Since the java file change was in the war directory, only the tests for the war and ear directories should run (changed module and dependent modules). With3.5.2
:
[INFO] Tests will run automatically when changes are detected. You can also press the Enter key to run tests on demand.
[INFO] guide-maven-multimodules-war source compilation was successful.
[INFO] guide-maven-multimodules-ear tests compilation was successful.
[INFO] [AUDIT ] CWWKT0017I: Web application removed (default_host): http://192.168.0.19:9080/converter/
[INFO] [AUDIT ] CWWKZ0009I: The application guide-maven-multimodules-ear has stopped successfully.
[INFO] Running unit tests for guide-maven-multimodules-war ...
[INFO] No tests to run.
[INFO] Unit tests for guide-maven-multimodules-war finished.
[INFO]
[INFO] CWWKM2010I: Searching for CWWKZ0003I: in /Users/kathrynkodama/devex/featureGeneration/snapshot-testing-05-20/guide-maven-multimodules/finish/ear/target/liberty/wlp/usr/servers/defaultServer/logs/messages.log. This search will timeout after 30 seconds.
[INFO] [AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.0.19:9080/converter/
[INFO] [AUDIT ] CWWKZ0003I: The application guide-maven-multimodules-ear updated in 0.233 seconds.
[INFO] CWWKM2015I: Match number: 2 is [2022-05-20, 14:24:06:835 EDT] 00000040 com.ibm.ws.app.manager.AppMessageHelper A CWWKZ0003I: The application guide-maven-multimodules-ear updated in 0.233 seconds..
[INFO] Running integration tests for guide-maven-multimodules-war...
[INFO] No tests to run.
[INFO] Integration tests for guide-maven-multimodules-war finished.
[INFO]
[INFO] CWWKM2010I: Searching for CWWKZ0003I: in /Users/kathrynkodama/devex/featureGeneration/snapshot-testing-05-20/guide-maven-multimodules/finish/ear/target/liberty/wlp/usr/servers/defaultServer/logs/messages.log. This search will timeout after 30 seconds.
[INFO] CWWKM2015I: Match number: 2 is [2022-05-20, 14:24:06:835 EDT] 00000040 com.ibm.ws.app.manager.AppMessageHelper A CWWKZ0003I: The application guide-maven-multimodules-ear updated in 0.233 seconds..
[INFO] Running integration tests for guide-maven-multimodules-ear...