I am working on a contribution tackling https://github.com/gradle/gradle/issues/1365 and I am at the phase trying to write an integration test to TDD my solution.
A problem that I am facing with this is that running
/gradlew core:integTest takes a very long time and I would like to run only the test that I am writing.
I have tried
./gradlew core:integTest --test org.gradle.api.tasks.CopySymlinksIntegrationTest but it does not seem to apply in this case and the task fails.
It would be very helpful running the one test from the command line.
Since I am using IntelliJ it would be even more helpful if there is a way to setup this to work from the IDE controls. Without any setup I get the following exception:
java.lang.RuntimeException: You must set the 'integTest.gradleHomeDir' property to run the integration tests. The default passed was: 'null'` at org.gradle.integtests.fixtures.executer.IntegrationTestBuildContext.file(IntegrationTestBuildContext.java:119) at org.gradle.integtests.fixtures.executer.IntegrationTestBuildContext.getGradleHomeDir(IntegrationTestBuildContext.java:33) at org.gradle.integtests.fixtures.executer.UnderDevelopmentGradleDistribution.<init>(UnderDevelopmentGradleDistribution.java:30) at org.gradle.integtests.fixtures.AbstractIntegrationTest.<init>(AbstractIntegrationTest.java:40) at org.gradle.api.tasks.CopySymlinksIntegrationTest.<init>(CopySymlinksIntegrationTest.groovy)`
I have tried to set this via a -D jvm flag to point to both my gradle project source and to snapshot installed with
-Pgradle_installPath but now I get the following exception:
java.lang.ExceptionInInitializerError at org.gradle.integtests.fixtures.AbstractIntegrationTest.<init>(AbstractIntegrationTest.java:41) at org.gradle.api.tasks.CopySymlinksIntegrationTest.<init>(CopySymlinksIntegrationTest.groovy) at Caused by: org.gradle.internal.service.ServiceCreationException: Could not create service of Caused by: org.gradle.api.internal.classpath.UnknownModuleException: Cannot locate manifest for module 'gradle-docs' in classpath.
Thank you for your help!