I am getting following error: Failed to execute goal [32morg.apache.maven.plugins:maven-failsafe-plugin:2.22.2:integration-test[m [1m(default-cli)[m on project [36madcallservice[m: [1;31m/apps/slave/workspace/ServiceDevIT/target/failsafe-reports/failsafe-summary.xml (No such file or directory)
Following is the set-up:
- I am running trying to run this on Jenkins node.
- Following is my docker-compose file:
version: '2'
services:
redis:
image: "redis:alpine"
ports:
- "6379:6379"
web:
depends_on:
- redis
build: .
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=test
- ENVIRONMENT_NAME=test
- This is my shell script on jenkins :
make build
docker-compose build
docker-compose up -d
mvn failsafe:integration-test
I have included the following entry in my pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<includes>
<include>**/IT*.java</include>
<include>**/*IT.java</include>
<include>**/*ITCase.java</include>
</includes>
</configuration>
<executions>
<execution>
<id>failsafe-integration-tests</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>failsafe-verify</id>
<phase>verify</phase>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
Also, the integration tests are in file named ControllerIT.java