Run Eclipse Junit Tests headless

Prepare:

1. Download Eclipse SDK

http://download.eclipse.org/eclipse/downloads/drops/R-3.7.1-201109091335/index.php

2.JUnit Plugin Tests and Automated Testing Framework 

http://download.eclipse.org/eclipse/downloads/drops/R-3.7.1-201109091335/download.php?dropFile=eclipse-Automated-Tests-3.7.1.zip

3.install JAVA JSDK

http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html

Note: make sure JSDK is installed at a directory the name of which  does not contain space and short


Setup:

1. unzip eclipse-Automated-Tests-3.7.1.zip into c:\,  it will create c:\eclipse-testing sub directory.

2. put the downloaded eclipse sdk package into c:\eclipse-testing. Don't unzip it.

3.rename this package according to your platform.

refer to target section of test.xml:

<target name="setRuntimeArchive">

and "buildId" property defined in "label.properties"

4. add/modify platform achive setting accoding to <target name="setupPlatform"> of test.xml

modify equinoxp2tests.properties to specify the platform archive 's location to c:\eclipse-testing\SDK archive


Run:

runtests -os linux -ws gtk -arch x86 testtarget1 testtarget2

Run output:

c:\eclipse-testing\results.

about coverage:

This test framework use jacoco in org.eclipse.test_xxx plugin which will set the javaagent vm argument automatically for you.

please make sure the tested plugin is compiled with debug symbols.


Note: ${os.arch} is different than the ${arch} defined from your command line:

runtests -os linux -ws gtk -arch x86 ant antui

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值