| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
Spock extension for Testcontainers library, which allows to use Docker containers inside of Spock tests.
Specifying the @Testcontainers annotation will instruct Spock to start and stop all testcontainers accordingly. This annotation can be mixed with Spock's @Shared annotation to indicate, that containers shouldn't be restarted between tests.
PostgresContainerIT inside_block:PostgresContainerIT
Add the following dependency to your pom.xml/build.gradle file:
testImplementation "org.testcontainers:spock:{{latest_version}}"<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>spock</artifactId>
<version>{{latest_version}}</version>
<scope>test</scope>
</dependency>The initial version of this project was heavily inspired by the excellent JUnit5 docker extension by FaustXVI.
| Back | FazBrowse Home | New Git URL |