Home > OS >  Spring Boot 3 with testing in Spock doesn't create context in @SpringBootTest test
Spring Boot 3 with testing in Spock doesn't create context in @SpringBootTest test

Time:12-02

I created simple project with the newest Spring Boot 3 and spock versions, which you can find here: https://github.com/RafBorkowski/SpringBoot3SpockExample. When I try to start test with junit, context of spring starting normally and test passing, but when I try to do the same test in spock I noticed that spring is not starting and not creating context, what lead to test failure. When I downgrade Spring boot version to 2.7.5, everything work normally.

P.S. I added screenshots with responses in README on github.

Any ideas?

CodePudding user response:

Update to Spock 2.4-M1 which was released today.

  • Related