Answer the question
In order to leave comments, you need to log in
How to enable subproject testing in gradle project?
Good afternoon!
There is a gradle project, after dividing the project into subprojects, it became impossible to run separate tests in IDEA. To be precise, they run, but as they run, "Test events were not recieved" is printed to the console , and such tests are always green. That being said, trying to run all the tests on the project ( gradle test ) works fine and builds a verbose report. I bring configs, because I suspect that I made a mistake in them.
build.gradle of each submodule is empty.
Main build.gradle
allprojects {
apply plugin: 'java'
apply plugin: 'groovy'
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
subprojects {
repositories {
jcenter()
}
dependencies {
testCompile 'org.codehaus.groovy:groovy-all:2.4.9'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4-rc-3'
testCompile 'junit:junit:4.12'
}
}
include 'submodule_01', 'submodule_02', 'submodule_03'
Answer the question
In order to leave comments, you need to log in
The problem was solved by synchronizing the project in intellij idea. Read more here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question