Skip to content

Commit 18dfed0

Browse files
committed
add integration test profile
1 parent 37ccb60 commit 18dfed0

File tree

2 files changed

+47
-4
lines changed

2 files changed

+47
-4
lines changed

jjwt/pom.xml

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,51 @@
5858
<groupId>org.springframework.boot</groupId>
5959
<artifactId>spring-boot-maven-plugin</artifactId>
6060
</plugin>
61+
<plugin>
62+
<groupId>org.apache.maven.plugins</groupId>
63+
<artifactId>maven-surefire-plugin</artifactId>
64+
<configuration>
65+
<excludes>
66+
<exclude>**/*IntegrationTest.java</exclude>
67+
<exclude>**/*LiveTest.java</exclude>
68+
</excludes>
69+
</configuration>
70+
</plugin>
6171
</plugins>
62-
</build>
63-
64-
72+
</build>
73+
74+
<profiles>
75+
<profile>
76+
<id>integration</id>
77+
<build>
78+
<plugins>
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-surefire-plugin</artifactId>
82+
<executions>
83+
<execution>
84+
<phase>integration-test</phase>
85+
<goals>
86+
<goal>test</goal>
87+
</goals>
88+
<configuration>
89+
<excludes>
90+
<exclude>**/*LiveTest.java</exclude>
91+
</excludes>
92+
<includes>
93+
<include>**/*IntegrationTest.java</include>
94+
</includes>
95+
</configuration>
96+
</execution>
97+
</executions>
98+
<configuration>
99+
<systemPropertyVariables>
100+
<test.mime>json</test.mime>
101+
</systemPropertyVariables>
102+
</configuration>
103+
</plugin>
104+
</plugins>
105+
</build>
106+
</profile>
107+
</profiles>
65108
</project>

jjwt/src/test/java/io/jsonwebtoken/jjwtfun/DemoApplicationTests.java renamed to jjwt/src/test/java/io/jsonwebtoken/jjwtfun/DemoApplicationIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@RunWith(SpringJUnit4ClassRunner.class)
1010
@SpringApplicationConfiguration(classes = JJWTFunApplication.class)
1111
@WebAppConfiguration
12-
public class DemoApplicationTests {
12+
public class DemoApplicationIntegrationTest {
1313

1414
@Test
1515
public void contextLoads() {

0 commit comments

Comments
 (0)