Commit feaa3a38 authored by Andy Wilkinson's avatar Andy Wilkinson

Merge pull request #15310 from Christoph Dreis

* gh-15310:
  Polish "Document that test slices should not be combined"
  Document that test slices should not be combined
parents b094e280 760003b9
...@@ -6837,6 +6837,10 @@ restricted set of auto-configuration classes. If you need to exclude one of them ...@@ -6837,6 +6837,10 @@ restricted set of auto-configuration classes. If you need to exclude one of them
most `@...Test` annotations provide an `excludeAutoConfiguration` attribute. most `@...Test` annotations provide an `excludeAutoConfiguration` attribute.
Alternatively, you can use `@ImportAutoConfiguration#exclude`. Alternatively, you can use `@ImportAutoConfiguration#exclude`.
NOTE: Including multiple "`slices`" by using several `@...Test` annotations in one test is
not supported. If you need multiple "`slices`", pick one of the `@...Test` annotations
and include the `@AutoConfigure...` annotations of the other "`slices`" by hand.
TIP: It is also possible to use the `@AutoConfigure...` annotations with the standard TIP: It is also possible to use the `@AutoConfigure...` annotations with the standard
`@SpringBootTest` annotation. You can use this combination if you are not interested in `@SpringBootTest` annotation. You can use this combination if you are not interested in
"`slicing`" your application but you want some of the auto-configured test beans. "`slicing`" your application but you want some of the auto-configured test beans.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment