Skip to content

Commit b2ef9da

Browse files
committed
Always run Actuator documentation tests
The tests must run so that the snippets included in the docs are generated. Closes gh-35875
1 parent 1e0c129 commit b2ef9da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ private void configurePredictiveTestSelection(Test test) {
186186
PredictiveTestSelectionExtension predictiveTestSelection = test.getExtensions()
187187
.getByType(PredictiveTestSelectionExtension.class);
188188
predictiveTestSelection.getEnabled().set(true);
189+
predictiveTestSelection.mustRun((mustRun) -> mustRun.getIncludeClasses()
190+
.add("org.springframework.boot.actuate.autoconfigure.endpoint.web.documentation.*"));
189191
}
190192
}
191193

0 commit comments

Comments
 (0)