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 : Name based test separation

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

This approach:

  • allows you to keep all tests in the same source directory src/test/java
  • is name based: integration tests are suffixed with IntegrationTests
  • uses Gradle to partition the tests using include/exclude name filters

See src/test/java and build.gradle

Running unit tests

./gradlew test

Running integration tests

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