1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
[...]
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<skipTests>${skip.unit.tests}</skipTests>
<systemProperties>
<property>
<name>spring.profiles.active</name>
<value>${spring.profiles.active}</value>
</property>
</systemProperties>
<excludes>
<exclude>**/itest/**/*.java</exclude>
</excludes>
</configuration>
<executions>
<!-- SOIT cette "execution" là ("integration standard") ?.. -->
<execution>
<id>surefire-integ-test</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skipTests>${skip.integration.tests}</skipTests>
<systemProperties>
<property>
<name>spring.profiles.active</name>
<value>${spring.profiles.active}</value>
</property>
</systemProperties>
<excludes>
<exclude>none</exclude>
</excludes>
<includes>
<include>**/itest/**/*.java</include>
</includes>
</configuration>
</execution>
<!-- SOIT cette "execution" là ("integration avec Mock") ?.. -->
<execution>
<id>surefire-integ-test-withMock</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skipTests>${skip.integration.tests}</skipTests>
<systemProperties>
<property>
<name>spring.profiles.active</name>
<value>${spring.profiles.active}</value>
</property>
</systemProperties>
<excludes>
<exclude>none</exclude>
</excludes>
<includes>
<include>**/itest/mock/**/*.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
[...]
<!-- Integration tests standard -->
<profile>
<id>INTEGRATION</id>
<properties>
<config.classifier>INTEGRATION</config.classifier>
<filtering.file.name>local.properties</filtering.file.name>
<skip.integration.tests>false</skip.integration.tests>
<skip.unit.tests>true</skip.unit.tests>
<!-- Spring profile -->
<spring.profiles.active>runtime</spring.profiles.active>
</properties>
</profile>
<!-- Integration tests with MOCK -->
<profile>
<id>MOCK</id>
<properties>
<config.classifier>MOCK</config.classifier>
<filtering.file.name>local.properties</filtering.file.name>
<skip.integration.tests>false</skip.integration.tests>
<skip.unit.tests>true</skip.unit.tests>
<!-- Spring profile -->
<spring.profiles.active>mock</spring.profiles.active>
</properties>
</profile>
[...] |
Partager