Skip to content

Commit

Permalink
Polish "Update docs and internal dep mgmt following Spock 2.0's release"
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed May 18, 2021
1 parent 5a6c355 commit 88b383c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -870,13 +870,11 @@ Alternatively, you can specify a source for your test, which disables the behavi

[[features.testing.spring-boot-applications.spock]]
==== Using Spock to Test Spring Boot Applications
If you wish to use Spock to test a Spring Boot application, you should add a dependency on Spock's `spock-spring` module to your application's build.
Spock 2.x can be used to test a Spring Boot application.
To do so, add a dependency on Spock's `spock-spring` module to your application's build.
`spock-spring` integrates Spring's test framework into Spock.
See https://spockframework.org/spock/docs/2.0/modules.html#_spring_module[the documentation for Spock's Spring module] for further details.

NOTE: As of Spring Boot 2.5.x and its support for Groovy 3.x you have two options to make use of Spock:
Either use the latest Spock 2.x release that is compatible with Groovy 3.x or stick with Spock 1.3 and downgrade Spring Boot's Groovy version to 2.5.x.



[[features.testing.utilities]]
Expand Down

0 comments on commit 88b383c

Please sign in to comment.