Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
29cd1cc7
Commit
29cd1cc7
authored
Nov 27, 2018
by
dreis2211
Committed by
Andy Wilkinson
Nov 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document that test slices should not be combined
See gh-15310
parent
b094e280
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+4
-0
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
29cd1cc7
...
@@ -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`" via the 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment