Hello
If by ClientDriver you mean
https://github.com/rest-driver/rest-driver/wiki/Client-driver, then
why do you need tomcat in the first place?
Why does tomcat need to be up, if the REST endpoint is mocked?
>I agree that Spock should not start tomcat, and the reason why we are doing this, is running the tests easy from Intellij.
I think you have a non-standard setup. In general your IDE should
conform to the build system, not the other way around. Your setup
should run fine from the command line/build server regardless of the
presence of an IDE (Intellij in your case).
>But are open to change setup if any good ideas :-)
Split your tests in two. Those that need the actual Tomcat, should run
as integration tests, where the application is deployed once and all
tests find everything ready.
Then you need a separate category of tests that use the mocked rest
endpoint and those should run as normal tests (i.e. without tomcat).
Kostis