Skip to content

Commit 60d6050

Browse files
committed
add integration test profile
1 parent 13cf659 commit 60d6050

2 files changed

Lines changed: 51 additions & 3 deletions

File tree

mapstruct/pom.xml

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,54 @@
5555
</annotationProcessorPaths>
5656
</configuration>
5757
</plugin>
58-
</plugins>
59-
</build>
58+
59+
<plugin>
60+
<groupId>org.apache.maven.plugins</groupId>
61+
<artifactId>maven-surefire-plugin</artifactId>
62+
<version>2.19.1</version>
63+
<configuration>
64+
<excludes>
65+
<exclude>**/*IntegrationTest.java</exclude>
66+
<exclude>**/*LiveTest.java</exclude>
67+
</excludes>
68+
</configuration>
69+
</plugin>
70+
</plugins>
71+
</build>
72+
73+
<profiles>
74+
<profile>
75+
<id>integration</id>
76+
<build>
77+
<plugins>
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-surefire-plugin</artifactId>
81+
<executions>
82+
<execution>
83+
<phase>integration-test</phase>
84+
<goals>
85+
<goal>test</goal>
86+
</goals>
87+
<configuration>
88+
<excludes>
89+
<exclude>**/*LiveTest.java</exclude>
90+
</excludes>
91+
<includes>
92+
<include>**/*IntegrationTest.java</include>
93+
</includes>
94+
</configuration>
95+
</execution>
96+
</executions>
97+
<configuration>
98+
<systemPropertyVariables>
99+
<test.mime>json</test.mime>
100+
</systemPropertyVariables>
101+
</configuration>
102+
</plugin>
103+
</plugins>
104+
</build>
105+
</profile>
106+
</profiles>
107+
60108
</project>

mapstruct/src/test/java/com/baeldung/mapper/SimpleSourceDestinationMapperTest.java renamed to mapstruct/src/test/java/com/baeldung/mapper/SimpleSourceDestinationMapperIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@RunWith(SpringJUnit4ClassRunner.class)
1414
@ContextConfiguration("classpath:applicationContext.xml")
15-
public class SimpleSourceDestinationMapperTest {
15+
public class SimpleSourceDestinationMapperIntegrationTest {
1616

1717
@Autowired
1818
SimpleSourceDestinationMapper simpleSourceDestinationMapper;

0 commit comments

Comments
 (0)