Fabulous Tests with Spock and Groovy
summary
A compact REST API testing framework using Spock and Groovy is presented, with a lightweight REST client, Gradle for running tests, Allure reports, and CI integration. The approach demonstrates parametrized Spock specs (running five times), CRUD tests against a fake JSON server, a small action library as the missing middle layer, and a quick build process that produced green runs and generated reports on a laptop in about half a day.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 3:58Automation testing problems
- 10:09Testing tool selection
- 11:58Groovy data structures
- 15:14REST requests with RestClient
- 20:14Writing Spock tests
- 26:17Data-driven testing
- 31:04Allure reports
- 36:24Gradle and Jenkins runs
- 41:50Results and benefits
- 46:24Q&A
related talks
35mThe Groovy Way of Testing with Spock
41mExample of REST API Automation Using Groovy+Spock
46mEasy testing with Spock
01h 12mUnit Tests as a Specification
18mSpeedup unit testing with the Spock framework
01h 17mTesting Java, Groovy, Spring and Web Applications with Spock
29mWhy I prefer Spock over JUnit
51mSpock Framework: The Ultimate Framework for Testing Your Java Applications
