D
D
Denis Verkhoturov2017-03-01 10:42:39
Java
Denis Verkhoturov, 2017-03-01 10:42:39

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'
    }
}

settings.gradle
include 'submodule_01', 'submodule_02', 'submodule_03'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Verkhoturov, 2017-03-01
@leo_scream

The problem was solved by synchronizing the project in intellij idea. Read more here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question