Forgus / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

"IllegalArgumentException: ServletContext must not be null" when running integration tests in batch, but not individually #359

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem? If possible, provide source code and
stack trace.

1. see https://groups.google.com/forum/#!topic/spockframework/RvVh8RA_tok
2. happens when there is a mix of junit and spock integration tests.
3. if a junit test is run before the spock test in the batch of tests run, the 
error "IllegalArgumentException: ServletContext must not be null" is thrown by 
all spock tests.

What version of Spock and Groovy are you using?

grails: 2.3.5
groovy: 2.2.2
spock: built-in to grails

Original issue reported on code.google.com by greg.hou...@greatparentsacademy.com on 9 Apr 2014 at 1:37

GoogleCodeExporter commented 8 years ago
Have the same issue at the same environment: 

grails: 2.3.5
groovy: 2.2.2
spock: built-in to grails

Original comment by vladimir...@gmail.com on 19 Aug 2014 at 11:14

GoogleCodeExporter commented 8 years ago
The same issue exists in grails 2.3.10.

Original comment by Russell....@gmail.com on 17 Sep 2014 at 3:15

GoogleCodeExporter commented 8 years ago
The same issue exists in grails 2.3.11

Original comment by happyoli...@gmail.com on 7 Feb 2015 at 12:14