Run Integration Test Locally
#
Preparation- Clone the code of Apache ShenYu.
- Install and start docker.
#
Start integration test locally- Build with Maven
./mvnw -B clean install -Prelease,docker -Dmaven.javadoc.skip=true -Dmaven.test.skip=true
- Build integrated tests
./mvnw -B clean install -Pit -DskipTests -f ./shenyu-integrated-test/pom.xml
- Start docker compose
docker-compose -f ./shenyu-integrated-test/${{ matrix.case }}/docker-compose.yml up -d
You need to replace
${{ matrix.case }}
with the exact directory, such asshenyu-integrated-test-http
.
- Run test
./mvnw test -Pit -f ./shenyu-integrated-test/${{ matrix.case }}/pom.xml