The previous part of this tutorial described the structure of a feature method and helped us to specify the expected behavior of the system under specification. This time we will take a closer look at the where block that is used to provide input data for our feature methods when we are writing parameterized tests […] Read More
Programming / Testing
Writing Unit Tests With Spock Framework: Introduction to Specifications, Part Two
The previous part of this tutorial described the structure of a Spock specification and helped us to write our first specification. Although it is important to understand the basics, our specifications are not very useful because we don't know how we can describe the expected behavior of the system under specification. This blog post fixes […] Read More
Writing Unit Tests With Spock Framework: Introduction to Specifications, Part One
When we are writing unit tests with Spock Framework, we have to create so called specifications that describe the features of our application. This blog post provides an introduction to Spock specifications, and will help us to create our first specification and understand its structure. Let's start by creating our first Spock specification. Additional Reading: […] Read More
What Prevents You From Writing Automated Tests?
If you read my blog on a regular basis, you have probably noticed that I have written many tutorials about automated testing. The problem is that some of these tutorials are quite old and outdated, and that is why I am going to update them. Here's where you come in. Before I can help you […] Read More
Writing Unit Tests With Spock Framework: Creating a Gradle Project
The Spock Framework is a testing and specification framework for Java and Groovy applications. Its website make a somewhat bold claim: What makes it stand out from the crowd is its beautiful and highly expressive specification language. Before we can verify if this claim is true, we have to create an example project that we […] Read More
Writing Unit Tests With Spock Framework: Creating a Maven Project
The Spock Framework is a testing and specification framework for Java and Groovy applications. Its website make a somewhat bold claim: What makes it stand out from the crowd is its beautiful and highly expressive specification language. Before we can verify if this claim is true, we have to create an example project that we […] Read More