Speaker: Cas Plattel
Genre & level: Frontend, Backend, Medior
Ever found cucumber tests requiring too much boilerplate and JUnit tests a bit too low level? Spock is a testing and specification framework for applications. It has an expressive syntax to write your tests in and can be used to unit test, integration test or even test your frontend using an additional layer called Geb.
We’ve been using both JUnit for unit testing and Cucumber for component and integration testing but both didn’t really satisfy our wishes. Spock seems to be the positioning itself in the middle ground where we can both write simple unit tests and still describe high-level behavioral flows.
This talk will elaborate on the Spock framework, some pro and cons. Spock is not a silver bullet but did turn out to help us due to, for instance, less false positive failing tests and a lot less boilerplate. The presentation will contain a short demo showing test runs.