test=true の場合、cobertura を計測コードから除外したいと考えています。
現在、必要なすべてのステートメントが上部にあります。
require 'buildr/java/cobertura'
require 'buildr/scala'
次に、ビルドが実行されるたびに、次のようになります。
cobertura データ ファイル C:/usr/git_workspaces/reports/cobertura.ser を使用してクラスを計測する
これは、私の製品コードに cobertura インストルメンテーションが含まれていることを意味します。
これは私のビルドの次のセクションです
compile.with CORE, SLF4J, LOG4J, WS_CLIENTS, JODA_TIME,
[omitted for brevity]
compile.options.other = %w(-encoding UTF-8)
cobertura.exclude '[omitted for brevity]'
resources.filter.using *RESOURCES_FILTER
test.using :junit
# need this because of forking. It does not appear to use the environmental variables defined above.
test.using :java_args => ["-XX:MaxPermSize=128M"]
test.with JUNIT, SCALATEST, MOCKITO, POWERMOCK, HAMCREST, SPRING.test
# Pakcage is below here but the code has already been instrumented...
compile.with はコンパイルが実際に行われる場所ですか? if テストを作成して cobertura を追加できますか?