How to start Spring Boot app in Spock Integration Test

The problem is that Spock Spring is looking for Spring’s @ContextConfiguration annotation and doesn’t manage to find it. Strictly speaking MyTestSpec is annotated with @ContextConfiguration as it’s a meta-annotation on @SpringApplicationConfiguration but Spock Spring doesn’t consider meta-annotations as part of its search. There’s an issue to address this limitation. In the meantime you can work … Read more

Integration Test with Spring Boot and Spock

The problem is that Spock Spring is looking for Spring’s @ContextConfiguration annotation and doesn’t manage to find it. Strictly speaking MyTestSpec is annotated with @ContextConfiguration as it’s a meta-annotation on @SpringApplicationConfiguration but Spock Spring doesn’t consider meta-annotations as part of its search. There’s an issue to address this limitation. In the meantime you can work … Read more