2015-02-11 119 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> 
相关问题