See https://github.com/spring-projects/spring-framework/issues/30726#issuecomment-1604637530 for details.

Comment From: sbrannen

This has been addressed in acb786d359f0b11ff67fe2b44db6aaace992dc17.

As stated in the commit comments, the following demonstrate the generated DEBUG message when ObservationThreadLocalAccessor or ThreadLocalAccessor is missing, respectively.

Skipping candidate TestExecutionListener [org.springframework.test.context.observation.MicrometerObservationRegistryTestExecutionListener] due to a missing dependency. Specify custom TestExecutionListener classes or make the default TestExecutionListener classes and their required dependencies available. Offending class: io.micrometer.observation.contextpropagation.ObservationThreadLocalAccessor. MicrometerObservationRegistryTestExecutionListener requires io.micrometer:micrometer-observation:1.10.8 or higher and io.micrometer:context-propagation:1.0.3 or higher.

Skipping candidate TestExecutionListener [org.springframework.test.context.observation.MicrometerObservationRegistryTestExecutionListener] due to a missing dependency. Specify custom TestExecutionListener classes or make the default TestExecutionListener classes and their required dependencies available. Offending class: io.micrometer.context.ThreadLocalAccessor. MicrometerObservationRegistryTestExecutionListener requires io.micrometer:micrometer-observation:1.10.8 or higher and io.micrometer:context-propagation:1.0.3 or higher.

@wilkinsona and @lynchie14, please let me know if the current behavior now meets your expectations.