我使用Jenkins和Buckminster作爲CI的rcp應用程序,並且這種工作方式類似於一個魅力。我遇到的唯一問題是,buckminster emma任務爲檢出的工作區中的所有軟件包執行代碼覆蓋。 我想指定一個排除過濾器,因爲這是爲ant任務描述的,但沒有得到它的工作。 buckminster艾瑪幫助命令也沒有幫助我。我的工作區有幾個插件,單元測試是爲我自己的軟件包指定的。但是有一個插件包含我不希望emma考慮代碼覆蓋率的源文件,因爲這是一個外部軟件包。我的JUnittests也不包括這個包。Hudson/Jenkins:Buckminster emma:如何排除軟件包
我該如何做到這一點,排除這個包/類在一個插件?
實施例:
- 插件A(外部)
- 插件B(自己)
- 插件C(含單元測試)我使用
的命令如下:
importtargetdefinition -A '${WORKSPACE}/de.plugin.site/plugin.target'
import '${WORKSPACE}/de.plugin.site/site.cquery'
build
perform -D target.os=* -D target.ws=* -D target.arch=* de.plugin.site#site.p2
perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86 de.plugin.site#create.product.zip
emma -l '/de.plugin.test/AllBuckminsterTests.launch' -o '${WORKSPACE}output/junit_result.xml' --xml '${WORKSPACE}/output/coverage_report.xml' --flatXML
`
我嘗試了參數--define 'filter=-de.external.*'
在buckminster艾瑪幫助中給出但沒有成功。
任何幫助將是偉大的!
不,還沒有。也會試試這個。 – Andreas 2011-03-23 17:30:49