'Maven - Running all integration tests with one command cmd
I have a big old project set up in Eclipse and have over 60 tests in it. Tests are run via Run Configuration -> JUnit Tests -> AllIntegrationTests. Tests in the IDE show up, I have successes, failures, etc. When I try to run the same project through the command line, the final result is not displayed to me. I have only at the end info about [INFO] BUILD SUCCESS.
I miss exactly this: e.g
>
>-------------------------------------------------------
> T E S T S
>-------------------------------------------------------
>Running test.OtherTest
>Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.105 sec - in >test.OtherTest
>Running test.SomeTest
>Tests run: 6, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec - in test.SomeTest
>
>Results :
>
>Tests run: 7, Failures: 0, Errors: 0, Skipped: 1
>
I run tests in cmd by: mvn -s settings.xml clean test -Dtest = AllIntegrationTests. I need this because I want to run tests in pipeline, and I can't find the command for it.
How can I copy the eclipse behavior to cmd? In this process, the server is started and tests are performed on it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
