Spock Framework: The Ultimate Framework for Testing Your Java Applications
summary
Presentation introduces the Spock testing framework for Java applications, explaining how Spock replaces or complements JUnit for unit testing. It covers Spock’s main features—Groovy-based specification style, expressive given-when-then syntax, mocking and stubbing support—and shows how to write clearer, more readable unit tests for Java projects.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:07Spock framework overview
- 2:31First Spock tests
- 8:39Given-When-Then blocks
- 10:50Data-driven tests
- 21:25Mocks and stubs in Spock
- 32:51Exception handling
- 37:04Test execution and parallelism
- 41:00Spock specification structure
- 44:26Tool integration
- 46:11Conclusion and Q&A
related talks
46mSmarter Java Testing with the Spock Framework
46mEasy testing with Spock
45mWhy Use Spock Instead of JUnit Mockito for Your Java Tests
42mTimeTest your java applications with Spockline01
35mThe Groovy Way of Testing with Spock
01h 17mTesting Java, Groovy, Spring and Web Applications with Spock
29mWhy I prefer Spock over JUnit
18mSpeedup unit testing with the Spock framework
