Skip to content
Snippets Groups Projects
Commit 9aa62dd6 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-6239 Run ITCase with maven

parent c449fe6f
Branches
Tags
No related merge requests found
......@@ -578,51 +578,11 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>*IT.java</exclude>
<exclude>*ITest.java</exclude>
</excludes>
<environmentVariables>
<SPRING_PROFILES_ACTIVE>${spring.testprofile}</SPRING_PROFILES_ACTIVE>
</environmentVariables>
<!--argLine>
${surefire.jacoco.args}
</argLine-->
<!--properties>
<configurationParameters>
junit.jupiter.extensions.autodetection.enabled = true
junit.jupiter.execution.parallel.enabled = true
</configurationParameters>
</properties-->
</configuration>
</plugin>
<!-- Integrationstests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>
${project.build.directory}/classes
</additionalClasspathElement>
</additionalClasspathElements>
<includes>
<include>*ITest.java</include>
<include>*IT.java</include>
<include>**/*Test.java</include>
<include>**/*ITCase.java</include>
</includes>
<reportsDirectory>
${project.build.directory}/surefire-reports
</reportsDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
......
......@@ -2,12 +2,14 @@ package de.ozgcloud.xta.test.app;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit.jupiter.SpringExtension;
@ExtendWith(SpringExtension.class)
@ActiveProfiles("test")
class ApplicationTests {
@SpringBootTest
class ApplicationITCase {
@Test
void contextLoads() { // NOSONAR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment