【问题标题】:Whats wrong with this that causes my integration tests to be marked as source rather than test source?这有什么问题导致我的集成测试被标记为源而不是测试源?
【发布时间】:2016-06-08 17:50:06
【问题描述】:

这在命令行中运行良好,但 IntelliJ 将 integrationTest 源显示为好像它们是源而不是测试源一样。

毕业代码:

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-idea gradle source-sets


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-10
      • 1970-01-01
      • 1970-01-01
      • 2010-12-19
      相关资源
      最近更新 更多