Testing Java, Groovy, Spring and Web Applications with Spock
summary
Live demos show Spock testing real Java and Groovy code: readable Groovy specs, built-in mocking and stubbing with mocks/stubs/spies, argument/interaction checks and nice failure diffs. Shows Spring integration including Spring TestContext and Spring Boot wiring — Spring TestContext integration is supported by adding spock-spring. Covers end-to-end browser tests using Geb (CSS selectors, waiting for async elements, drag‑and‑drop) and a reporting tool that captures screenshots and labeled Geb + Spock for browser tests steps. Good if you want concrete examples and tooling setup.
AI-written summary · about
chapters (9)
- 0:00Introduction to Spock
- 5:30Testing Java code with Spock
- 16:58Mocking with Spock
- 25:15Advanced mocking features
- 33:44Testing Spring applications
- 38:41Testing web applications with Spock and Geb
- 1:00:14Running end-to-end web tests
- 1:02:32Spock reporting features
- 1:16:58Q&A and closing
related talks
46mEasy testing with Spock
42mTimeTest your java applications with Spockline01
35mThe Groovy Way of Testing with Spock
51mSpock Framework: The Ultimate Framework for Testing Your Java Applications
18mSpeedup unit testing with the Spock framework
01h 12mUnit Tests as a Specification
49mFabulous Tests with Spock and Groovy
45mWhy Use Spock Instead of JUnit Mockito for Your Java Tests
