Skip to content

Commit 4c6febf

Browse files
committed
Merge branch '4.0.x'
Closes gh-49018
2 parents e53d008 + 8f4f13f commit 4c6febf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/features/developing-auto-configuration.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ If the auto-configuration is relatively straightforward and does not have option
252252

253253
If "acme" has a basic set of dependencies that are required to work, but you want to express a more opinionated view, then having a separate starter is a good option.
254254

255+
When testing "acme" features, you may need test-specific auto-configurations.
256+
For example, you could offer a way to replace external dependencies with in-memory alternatives.
257+
A separate test-scoped starter can be created for this purpose, following the same principles.
255258

256259

257260
[[features.developing-auto-configuration.custom-starter.naming]]
@@ -265,6 +268,7 @@ As a rule of thumb, you should name a combined module after the starter.
265268
For example, assume that you are creating a starter for "acme" and that you name the auto-configure module `acme-spring-boot` and the starter `acme-spring-boot-starter`.
266269
If you only have one module that combines the two, name it `acme-spring-boot-starter`.
267270

271+
If "acme" also has a test-scoped starter, name it `acme-spring-boot-starter-test`.
268272

269273

270274
[[features.developing-auto-configuration.custom-starter.configuration-keys]]

0 commit comments

Comments
 (0)