[prev in list] [next in list] [prev in thread] [next in thread] 

List:       maven-user
Subject:    Re: Problem with running Spring Integration Tests with mvn verify
From:       Guang Chao <guang.chao.1974 () gmail ! com>
Date:       2019-01-16 5:50:24
Message-ID: CAHwa4QPpBSn-VAzeAnSUFNZRM9M6Ki3hL2z4_1Bt=9nMiSPKHg () mail ! gmail ! com
[Download RAW message or body]


On Sun, Jan 6, 2019 at 11:36 PM Aleksandar Tokarev <a.tokarev90@gmail.com>
wrote:

> I am having a Spring Boot application with around ~500 Tests (Unit and
> mostly Integration).
>
> When i start running the tests in IntelliJ with second click -> Run all
> Tests - tests run in around 10-15mins.
>
> When i try to run the tests with "mvn verify -P itest" in IntelliJ
>

Is it possible to check which profile IntelliJ is using when it is fast?
Or the default values when run with no profile?


> terminal, the execution time is around an hour. This is because this
> command starts and stops the Spring Test Runner Server on every class
> (which is not my desired result).
>
> The IntelliJ second click -> Run all Tests starts it only once. Our Jenkins
> Job is running the tests with "mvn verify -P itest", so my question is how
> can i change this behavior, to start and stop the Test Runner only once
> (with this "mvn verify -P itest" command).
>
> itest is the profile that we have in our pom.xml which includes the classes
> that contain integration tests (using maven failsafe plugin)
>
> Here are the annotations of our base abstract Integration Test class
>
> @RunWith(SpringJUnit4ClassRunner.class)
> @SpringBootTest(classes = MainApplication.class, webEnvironment =
> WebEnvironment.RANDOM_PORT)
>
> I found this article which could by similar to my problem, but this does
> not explain the behavior that IntelliJ gives me.
>
> Reset Spring-Boot During Integration Tests
> <
> https://stackoverflow.com/questions/44241936/reset-spring-boot-during-integration-tests
> >
>
> Thanks a lot in advance
>


-- 
Guang <http://javadevnotes.com/java-string-split-tutorial-and-examples>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic