Problem: You’ve got some very costly object to instantiate or it just doesn’t change through all the tests and just want to reuse it (for example DateTime object). Spock Framework allows to do it in an easy and readable way. Learn here how!
Problem: Spock Framework is powerful data-driven testing library. Its where block makes tests very concise, but sometimes when test fail how to quickly find out which dataset didn’t work?
Problem: How to use Spock‘s where block to parametrize given-when-then tests?
Problem: How to write data-driven tests using Spock’s expect with where block? Where blocks are power feature of Spock Framework!
Problem: How to share common assertions between tests in Spock Framework?
Problem: Spock Framework is fantastic unit tests library that makes people love to test their code. Check out this post and learn how to start with Spock Framework!