spock icon indicating copy to clipboard operation
spock copied to clipboard

The Enterprise-ready testing and specification framework.

Results 204 spock issues
Sort by recently updated
recently updated
newest added

fixes #1502 When the context contains multiple beans for given interface but one of them is marked as @Primary it should be possible to mock this interface. Current implementation doesn't...

### Is your feature request related to a problem? We have tests that typically rely on SAME_THREAD Specifications, SAME_THREAD Features. (https://spockframework.org/spock/docs/2.1/parallel_execution.html Figure 1) However we have single Specifications where all...

new feature

### Describe the bug ### Problem I have a test that spies an instance: ``` private MainKnowledgeSessionService service void setup() { service = new MainKnowledgeSessionService() [... hidden code for clarity...]...

bug

### Describe the bug In larger Spring Boot's codebases it's not uncommon to have multiple beans of the same type where one of them is marked as `@Primary`. Attempting to...

bug

# Issue description Currently you can declare a certain mocked behaviour in the setup method, which will then be used for every test in the class. If you want to...

# Issue description ``` def "should keep verbose error message"() { given: String foo = "foo message" expect: foo.contains("bar") } ``` results in very nice error message: ``` Condition not...

enhancement

### Describe the bug In order write [this Stack Overflow answer](https://stackoverflow.com/a/71633157/1082681), I implemented a test demonstrating data pipes. It works nicely on Spock 1.3. Then I copied it into GWC,...

bug

Add basic JDK 18 tests on CI with Temurin. Unfortunately, Gradle 7.4.1/2 [refuses](https://github.com/spockframework/spock/runs/5960598888?check_suite_focus=true#step:4:43) to play with JDK 18: ``` * What went wrong: A problem occurred evaluating project ':spock-specs'. >...