2015-02-11 122 views

回答

1

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> 
相關問題