spring - How can I run test by JUnit4, with more threads? -


this question has answer here:

i have unit test class, , execute test spring junit4. tests execute 15 minutes, because test runs 1 one. here problem. test won execute continuing integration. after every commit need wait 15 minutes, , not acceptable. how can execute test more 1 thread, or tests execute in parallel?

e.g mean,run @test method in parallel,not 2 different class in parallel. if have 60 test methods in 1 class,execute 60 methods simultaneously.

configure maven surefire plugin runs in parallel:

  <plugin>     <groupid>org.apache.maven.plugins</groupid>     <artifactid>maven-surefire-plugin</artifactid>     <version>2.19.1</version>     <configuration>       <parallel>methods</parallel>       <threadcount>10</threadcount>     </configuration>   </plugin> 

see maven junit4 documentation or fork options , parallel execution details.


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -