GH-875 - Mention test starter in testing reference documentation chapter.

This commit is contained in:
Oliver Drotbohm
2024-10-14 17:32:09 +02:00
parent 61a75150b3
commit 99870035de

View File

@@ -2,7 +2,18 @@
= Integration Testing Application Modules
Spring Modulith allows to run integration tests bootstrapping individual application modules in isolation or combination with others.
To achieve this, place a JUnit test class in an application module package or any sub-package of that and annotate it with `@ApplicationModuleTest`:
To achieve this, add the Spring Modulith test starter to your project like this
[source, xml]
----
<dependency>
<groupId>org.springframework.modulith</groupId>
<artifactId>spring-modulith-starter-test</artifactId>
<scope>test</scope>
</dependency>
----
and place a JUnit test class in an application module package or any sub-package of that and annotate it with `@ApplicationModuleTest`:
.An application module integration test class
[tabs]