Top "Spock" questions

Spock is a testing and specification framework for Java and Groovy applications.

Running spock unit tests with Maven

On a previous project I used the Spock testing framework to unit test my Java code. I found this really …

java unit-testing maven groovy spock
How to select the second Class element using jQuery working with Spock/Geb

I have done a lot of research to find out the answer for the following to no avail. I have …

jquery jquery-selectors spock geb
Easiest way to read Excel files in groovy?

Are there any warappers/utils available to read Excel files in Groovy. I am looking for something similar to Groovy …

java groovy spock
How to Run a Spock Test inside Eclipse

I try to run my first Spock Test inside Eclipse, and it does not work. I added all the Maven …

groovy junit spock
Assert two lists are equal in Spock framework

I test my application using Spock framework, the tests are written in Groovy. As a result of some method evaluation …

java groovy spock
When Spock's @Shared annotation should be preferred over a static field?

There is not much to add, the whole question is in the title. Consider these two instances of class Foo …

unit-testing groovy spock
Grails / Spock: How to mock single method within class where method is called from within the class itself?

Given the following, how do I mock processMessage() using Spock, so that I can check that processBulkMessage() calls processMessage() n …

unit-testing grails groovy spock
Spock- ignore spec method for a subclass

I have a test spec in Spock and I want to apply the same tests to another alternative with exception …

java testing groovy tdd spock
Selecting specific tests to run in gradle

I'm trying to fix our messy failing test runs, and, unfortunately, I'm very new to gradle. We currently have testng, …

junit testng gradle spock
Mock final class in Spock

Can spock mock final classes? If so, how? Search results brought up this gist, which would seem to imply so, …

mocking final spock