<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Testing Plug-ins with Fragments</title>
	<atom:link href="http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/</link>
	<description>Eclipse RCP and OSGi training - online or onsite</description>
	<lastBuildDate>Fri, 03 Feb 2012 15:37:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Justin</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-34100</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Wed, 21 Sep 2011 20:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-34100</guid>
		<description>Yes, that&#039;s the road I&#039;m planning to take - just a shame I need (yet) another plugin to host the shared code..!

- Justin</description>
		<content:encoded><![CDATA[<p>Yes, that&#8217;s the road I&#8217;m planning to take &#8211; just a shame I need (yet) another plugin to host the shared code..!</p>
<p>- Justin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-34094</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Wed, 21 Sep 2011 19:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-34094</guid>
		<description>Hi Justin,

One solution would be to separate out the test utility classes into a full-fledged x.test.util bundle. I don&#039;t see any downside to having common test classes live outside of fragments.

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Justin,</p>
<p>One solution would be to separate out the test utility classes into a full-fledged x.test.util bundle. I don&#8217;t see any downside to having common test classes live outside of fragments.</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-34093</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Wed, 21 Sep 2011 19:33:58 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-34093</guid>
		<description>Anyone planning to use Tycho should be aware it doesn&#039;t support &quot;Eclipse-ExtensibleAPI&quot;, at least not yet!

This just bit me as I have some test utility classes I&#039;d like to use across plugins :P  They&#039;ve been aware of it for a while - https://issues.sonatype.org/browse/TYCHO-60 - surprised it hasn&#039;t been addressed yet. Think I&#039;m going to have vote for this one... and will post a link to your article :)

- Justin</description>
		<content:encoded><![CDATA[<p>Anyone planning to use Tycho should be aware it doesn&#8217;t support &#8220;Eclipse-ExtensibleAPI&#8221;, at least not yet!</p>
<p>This just bit me as I have some test utility classes I&#8217;d like to use across plugins :P  They&#8217;ve been aware of it for a while &#8211; <a href="https://issues.sonatype.org/browse/TYCHO-60" rel="nofollow">https://issues.sonatype.org/browse/TYCHO-60</a> &#8211; surprised it hasn&#8217;t been addressed yet. Think I&#8217;m going to have vote for this one&#8230; and will post a link to your article :)</p>
<p>- Justin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-28998</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Wed, 03 Aug 2011 01:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-28998</guid>
		<description>Hi Romain,

Sorry for the delay in responding. I&#039;ve been traveling and teaching this week. 

Anyway, I&#039;m not exactly sure how the test classes could be used in production code. It&#039;s difficult (though not impossible) for other plug-ins to use fragment-based test classes. Can you give me an example of a problem scenario? That might help me and others come up with possible solutions.

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Romain,</p>
<p>Sorry for the delay in responding. I&#8217;ve been traveling and teaching this week. </p>
<p>Anyway, I&#8217;m not exactly sure how the test classes could be used in production code. It&#8217;s difficult (though not impossible) for other plug-ins to use fragment-based test classes. Can you give me an example of a problem scenario? That might help me and others come up with possible solutions.</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Romain</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-28830</link>
		<dc:creator>Romain</dc:creator>
		<pubDate>Mon, 01 Aug 2011 16:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-28830</guid>
		<description>Hi Patrick,

Very useful post. One downside of plug-in fragments and &quot;seeing&quot; their classes through the fragment host is the risk of using test classes in production code. This leakage can be fixed by a 2-stage compilation, one for runtime code and one for tests, but it doesn&#039;t guide developers in any way (differences between graphical development environment and headless build frequently leads to build failures and frustration)

Anyone has a solution for this?

  Romain</description>
		<content:encoded><![CDATA[<p>Hi Patrick,</p>
<p>Very useful post. One downside of plug-in fragments and &#8220;seeing&#8221; their classes through the fragment host is the risk of using test classes in production code. This leakage can be fixed by a 2-stage compilation, one for runtime code and one for tests, but it doesn&#8217;t guide developers in any way (differences between graphical development environment and headless build frequently leads to build failures and frustration)</p>
<p>Anyone has a solution for this?</p>
<p>  Romain</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-17398</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Mon, 28 Feb 2011 20:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-17398</guid>
		<description>Hi RJ,

Fragment projects are much like regular Plug-in projects. A fragment will become a JAR file at runtime and yes there will be a second JAR on the client (one for the plug-in, one for the fragment).

You publish a fragment just like a plug-in. Add it to a feature or directly to your product configuration. The fragment will get built as part of your product/feature and can be published to a p2 repository or update site.

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi RJ,</p>
<p>Fragment projects are much like regular Plug-in projects. A fragment will become a JAR file at runtime and yes there will be a second JAR on the client (one for the plug-in, one for the fragment).</p>
<p>You publish a fragment just like a plug-in. Add it to a feature or directly to your product configuration. The fragment will get built as part of your product/feature and can be published to a p2 repository or update site.</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rj</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-17383</link>
		<dc:creator>Rj</dc:creator>
		<pubDate>Mon, 28 Feb 2011 13:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-17383</guid>
		<description>Can you kindly tell me more about Fragment project?
I have main plugin.
I need to add catalog contribution to it through fragment project.
Do i need to generate jar for fragment?
What will be effect of this on the original plugin?
Will there be two separate jars at client side?
How should i publish the fragment?

Plz help me.</description>
		<content:encoded><![CDATA[<p>Can you kindly tell me more about Fragment project?<br />
I have main plugin.<br />
I need to add catalog contribution to it through fragment project.<br />
Do i need to generate jar for fragment?<br />
What will be effect of this on the original plugin?<br />
Will there be two separate jars at client side?<br />
How should i publish the fragment?</p>
<p>Plz help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-9416</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Wed, 23 Jun 2010 18:06:42 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-9416</guid>
		<description>Hi Yudi,

The best place to start with PDE Build would be to get a sample build going. I&#039;ve got two on this site, one without JUnit testing and one with:

http://rcpquickstart.com/2007/06/06/getting-started-with-pde-build/
http://www.modumind.com/2007/08/06/running-automated-tests-with-pde-build/

My suggestion would be to get one or both of these builds running and play with the configurations to see how they work. I&#039;m sorry to say that I don&#039;t have any experience with TeamCity, but if as you say it can launch ANT scripts then it should work fine with PDE Build.

Let me know if you have any questions while you&#039;re setting up the builds. I&#039;d be happy to help.

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Yudi,</p>
<p>The best place to start with PDE Build would be to get a sample build going. I&#8217;ve got two on this site, one without JUnit testing and one with:</p>
<p><a href="http://rcpquickstart.com/2007/06/06/getting-started-with-pde-build/" rel="nofollow">http://rcpquickstart.com/2007/06/06/getting-started-with-pde-build/</a><br />
<a href="http://www.modumind.com/2007/08/06/running-automated-tests-with-pde-build/" rel="nofollow">http://www.modumind.com/2007/08/06/running-automated-tests-with-pde-build/</a></p>
<p>My suggestion would be to get one or both of these builds running and play with the configurations to see how they work. I&#8217;m sorry to say that I don&#8217;t have any experience with TeamCity, but if as you say it can launch ANT scripts then it should work fine with PDE Build.</p>
<p>Let me know if you have any questions while you&#8217;re setting up the builds. I&#8217;d be happy to help.</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yudi Xue</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-9409</link>
		<dc:creator>Yudi Xue</dc:creator>
		<pubDate>Wed, 23 Jun 2010 05:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-9409</guid>
		<description>Hi Patrick,

Sorry that I didn&#039;t make my goal clear. I am planning to run the master test suits on a build server which is running TeamCity. It grants the option to execute ANT script for daily build and nightly build.

I was a bit puzzled by PDE build and trying to clear my head with it. Apparently (from one of your other posts) I need to set up RCP binary, junit package, the RCP delta pack and the eclipse SDK on the build server in order to properly generate builds for different platforms. It would be great if you can show me how to set up ETF for Teamcity ANT configuration. (I know how to use Teamcity)

I am following your PDE automation post and trying to understand what I&#039;m doing from your examples. Hopefully the solution will provide a direction on how to properly set up my projects. 

thanks, yudi</description>
		<content:encoded><![CDATA[<p>Hi Patrick,</p>
<p>Sorry that I didn&#8217;t make my goal clear. I am planning to run the master test suits on a build server which is running TeamCity. It grants the option to execute ANT script for daily build and nightly build.</p>
<p>I was a bit puzzled by PDE build and trying to clear my head with it. Apparently (from one of your other posts) I need to set up RCP binary, junit package, the RCP delta pack and the eclipse SDK on the build server in order to properly generate builds for different platforms. It would be great if you can show me how to set up ETF for Teamcity ANT configuration. (I know how to use Teamcity)</p>
<p>I am following your PDE automation post and trying to understand what I&#8217;m doing from your examples. Hopefully the solution will provide a direction on how to properly set up my projects. </p>
<p>thanks, yudi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-9406</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Tue, 22 Jun 2010 19:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-9406</guid>
		<description>Hi Yudi,

I&#039;m glad the post helped. I&#039;m not sure what you mean by generating ANT scripts, though. If you create a master test suite through reflection, this code should probably run inside of a unit test that can be called normally using the Eclipse Test Framework. If you need help setting up the ETF, let me know.

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Yudi,</p>
<p>I&#8217;m glad the post helped. I&#8217;m not sure what you mean by generating ANT scripts, though. If you create a master test suite through reflection, this code should probably run inside of a unit test that can be called normally using the Eclipse Test Framework. If you need help setting up the ETF, let me know.</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
</channel>
</rss>

