Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
README.md
build.gradle
gradlew
gradlew.bat

README.md

Spring Boot + Gradle : Different source directories based test separation

This example illustrates a simple approach to partition your tests into unit tests and integration tests.

This approach:

  • expects unit tests to be placed in the source directory src/test/java
  • expects integration tests to be placed in the source directory src/integrationTest/java
  • uses Gradle to honor the test directory separation

See src/test/java, src/integrationTest/java and build.gradle

Running unit tests

./gradlew test

Running integration tests

./gradlew integrationTest
You can’t perform that action at this time.