プロジェクトで機能テスト用のソース セットをセットアップしました。junit テスト レポートの生成を除いて、すべてが期待どおりに機能しています。欠落している構成ビットがわかりません。ここに私が持っているものがあります:
sourceSets {
// Note that just declaring this sourceset creates two configurations.
funcTest {
scala {
srcDir 'src/funcTest/scala'
compileClasspath += main.output
runtimeClasspath += main.output
}
}
}
configurations {
funcTestCompile.extendsFrom testCompile
funcTestRuntime.extendsFrom testRuntime
}
task funcTest(type:Test){
description = "Run integration tests (located in src/funcTest/...)."
testClassesDir = project.sourceSets.funcTest.output.classesDir
testSrcDirs = project.sourceSets.funcTest.scala.source
classpath = project.sourceSets.funcTest.runtimeClasspath
dependsOn test
}
上記は私のテストをビルドして実行します。ただし、レポートのディレクトリ構造は次のようになります。
./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/base-style.css
./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/css3-pie-1.0beta3.htc
./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/MongoConfigTest.html
./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/MongoConfigTest.scala.html
./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/report.js
./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/style.css
私は何が欠けていますか?なぜそれを作成しているのですか
src にソース ファイルが見つかりません
ディレクトリ?scala ファイルを探す必要があることを知る必要があると思いますが、それを伝える方法がわかりません。明らかな何かが欠けているに違いありません。