I will try this now and report about the result, thank you.
I already tried it with this example:
http://www.eclipse.org/articles/article.php?file=Article-PDEJUnitAntAutomation/index.html
But it seemed a bit too complicated and I didn't suceed in short time with it.
So I will now try your example.
--- On Tue, 7/8/08, Ketan Padegaonkar <[EMAIL PROTECTED]> wrote:
From: Ketan Padegaonkar <[EMAIL PROTECTED]>
Subject: Re: [SWTBot-users] Running SWTBot Plugin Test from Ant
To: swtbot-users@lists.sourceforge.net
Date: Tuesday, July 8, 2008, 11:48 PM
On 08-Jul-08, at 9:28 PM, Hans Schwaebli wrote:
> Can somebody donate an example (working and tested) for running
> SWTBot plugin tests from Ant?
>
> I desperately try to get it working witht the org.rcpmail.test
> example plugin, but currently with no success.
>
> The example from Stefan Seelmann did not work by the way, or I
> couldn't translate it into the plugin I want to test. Whatever.
You can run tests only after you've exported your plugins into an
existing eclipse/rcp deployment.
You'll need to also extract SWTBot into this location. After you've
extracted it all, the following snippet should be all you need, the
os, ws and arch parameters are documented here:
http://update.eclipse.org/downloads/drops/R-3.3.2-200802211800/srcIncludedBuildInstructions.html#build_platforms
Let me know if this works for you and I'll update the FAQ with this
information.
--- begin snippet ---
<echo message="Running ${classname}. Result file: ${junit-report-
output}/${classname}.xml."/>
<property name="application"
value="net.sf.swtbot.eclipse.headless.swtbottestapplication"/>
<java fork="true" dir="." timeout="${timeout}"
jvm="${jvm}"
logError="true"
classname="org.eclipse.core.launcher.Main"
output="${junit-report-
output}/${classname}.txt">
<classpath>
<fileset dir="${eclipse-home}/plugins">
<include name="org.eclipse.equinox.launcher_*.jar"/>
</fileset>
</classpath>
<arg line="-application ${application}"/>
<arg line="-data ${data-dir}"/>
<arg line="formatter=${formatter},${test-output}"/>
<arg line="-testPluginName ${plugin-name}"/>
<arg line="-className ${classname}"/>
<arg line="-os ${os}"/>
<arg line="-ws ${ws}"/>
<arg line="-arch ${arch}"/>
<arg line="-consolelog"/>
<arg line="-debug"/>
<jvmarg line="${vmargs} ${extraVMargs} ${jvmOption}"/>
<sysproperty key="PLUGIN_PATH"
value="${plugin-path}"/>
</java>
--- end snippet ---
-- Ketan
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse