Always run Actuator documentation tests

The tests must run so that the snippets included in the docs are
generated.

Closes gh-35875
This commit is contained in:
Andy Wilkinson
2023-06-13 20:29:30 +01:00
parent 1e0c129452
commit b2ef9da154

View File

@@ -186,6 +186,8 @@ class JavaConventions {
PredictiveTestSelectionExtension predictiveTestSelection = test.getExtensions()
.getByType(PredictiveTestSelectionExtension.class);
predictiveTestSelection.getEnabled().set(true);
predictiveTestSelection.mustRun((mustRun) -> mustRun.getIncludeClasses()
.add("org.springframework.boot.actuate.autoconfigure.endpoint.web.documentation.*"));
}
}