-1
我們如何使用Eclipse中的ant(也是命令提示器)運行junit插件測試。即時通訊使用Junit4.4如何使用eclipse中的Ant運行Junit插件測試
我們如何使用Eclipse中的ant(也是命令提示器)運行junit插件測試。即時通訊使用Junit4.4如何使用eclipse中的Ant運行Junit插件測試
的org.eclipse.test
插件提供了library.xml
文件,該文件包含無論是在UI(ui-test
目標)和無頭(core-test
目標)模式運行插件測試Ant任務。下面調用任務的例子,你需要提供一些屬性適合自己的環境,並檢查org.eclipse.test
插件版本:
<property name="library-file"
value="${eclipse-home}/plugins/org.eclipse.test_3.2.0/library.xml" />
...
<ant target="ui-test" antfile="${library-file}"
dir="${eclipse-home}">
<property name="data-dir" value="${workspace}" />
<property name="plugin-name" value="${plugin-name}" />
<property name="classname"
value="com.example.MyTestSuite" />
<property name="junit-report-output" value="${results.dir}"/>
</ant>