这有什么问题导致我的集成测试被标记为源而不是测试源?

Whats wrong with this that causes my integration tests to be marked as source rather than test source?

这在命令行中工作正常,但 IntelliJ 显示 integrationTest 源,就好像它们是源而不是测试源一样。

Gradle代码:

sourceSets {
    integrationTest {
        java {
            compileClasspath += main.output + test.output
            runtimeClasspath += main.output + test.output
            srcDir file('src/it/java')
            output.classesDir   = "$buildDir/classes/it"
        }

        def resourceDir = file('src/it/resources')
        if (resourceDir.exists()) {
            resources.srcDir resourceDir
            output.resourcesDir = "$buildDir/resources/it"
        }
    }
}

这是一个 IntelliJ 错误。请投票给它。

https://youtrack.jetbrains.com/issue/IDEA-151925