Can you make it so that appBeforeIntegrationTest is only run if there isn't already a server running?
Right now if I try to run my tests while the server is running I get this error: Timeout waiting to lock buildscript class cache for build file '/Users/Joseph/Documents/HIT/PSC-App/build.gradle' (/Users/Joseph/.gradle/caches/2.2.1/scripts/build_1rr8krti86d39iouinhxrvu9e/ProjectScript/buildscript). It is currently in use by another Gradle instance. Owner PID: unknown Our PID: 11390 Owner Operation: unknown Our operation: Initialize cache Lock file: /Users/Joseph/.gradle/caches/2.2.1/scripts/build_1rr8krti86d39iouinhxrvu9e/ProjectScript/buildscript/cache.properties.lock
I could stop the server and then run my tests but I don't want to stop the server because I need the server. I'm aware of the integrationTestTask but then my test would be very slow because I would have to stop the server and then wait for appBeforeIntegrationTest. Do you have any idea of how I run my tests without restarting server if the server is already started?
I have a similar but slightly different situation - if test failed (crashed) the server is not shutting down then the next time the build will fail because it detects there is a server running already. What to go about that? Thanks -cl