File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,13 @@ Not supported:
250250
251251Of course, constructor parameters injection is not supported because spock does not allow spec constructors.
252252
253- ##### Default extensions
253+ ** What does "extension not supported" mean?**
254+ If extension implements not supported extension interface, like ` TestWatcher ` ,
255+ then methods for this interface would not be called on extension. That's all.
256+ Such interfaces might be used in extension for some "additional features" like logging and
257+ so extension would work perfectly in spock.
258+
259+ ##### Default junit extensions
254260
255261Junit register some extensions by default:
256262
@@ -270,6 +276,11 @@ Plus, junit loads extensions from `META-INF/services/org.junit.jupiter.api.exten
270276This is intentional: as not all extensions are supported, then automatic loading may
271277cause unexpected behavior. If you need any default extension - register it manually.
272278
279+ Annotation-based extensions like ` @Disabled ` or ` @AutoClose ` would work in spock because they are declared with annotations.
280+ Extensions like ` TestInfoParameterResolver ` could be easully enabled with ` @ExtendWith(TestInfoParameterResolver.class) `
281+
282+ So overall not automatic defaults should not be a problem.
283+
273284### Usage with Spring-Boot
274285
275286Only spock and spock-junit5 dependencies would be required:
You can’t perform that action at this time.
0 commit comments