<?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, 05 Feb 2010 16:34:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-4758</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Tue, 12 Jan 2010 17:19:15 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-4758</guid>
		<description>Hi Anu,

Unfortunately I&#039;ve never been able to get test fragments working with PDE Build. There is an open Bugzilla entry on this, and maybe you could add a post saying that you&#039;d be interested in a solution.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=181508

The more people that ask, the better.

Regards,

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Anu,</p>
<p>Unfortunately I&#8217;ve never been able to get test fragments working with PDE Build. There is an open Bugzilla entry on this, and maybe you could add a post saying that you&#8217;d be interested in a solution.</p>
<p><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=181508" rel="nofollow">https://bugs.eclipse.org/bugs/show_bug.cgi?id=181508</a></p>
<p>The more people that ask, the better.</p>
<p>Regards,</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anu</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-4752</link>
		<dc:creator>Anu</dc:creator>
		<pubDate>Tue, 12 Jan 2010 10:02:25 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-4752</guid>
		<description>Hi
Thanks for the great post! It was very helpful.
However I&#039;m trying to build my application using PDE build and it is not picking up test fragments. It is unable to find the dependencies which exists in the host plug-in of the fragment. Any advice on how should I tackle this issue?</description>
		<content:encoded><![CDATA[<p>Hi<br />
Thanks for the great post! It was very helpful.<br />
However I&#8217;m trying to build my application using PDE build and it is not picking up test fragments. It is unable to find the dependencies which exists in the host plug-in of the fragment. Any advice on how should I tackle this issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: com.dmissoh.org &#187; Blog Archive &#187; Nuts and bolts of the UI development: GUI Test of SWT and Eclipse Applications</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-356</link>
		<dc:creator>com.dmissoh.org &#187; Blog Archive &#187; Nuts and bolts of the UI development: GUI Test of SWT and Eclipse Applications</dc:creator>
		<pubDate>Sun, 15 Feb 2009 17:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-356</guid>
		<description>[...] plug-ins or fragments can be run without using test suites. In one of his previous articles (Testing Plug-ins with Fragments) he explains how fragments can be used to separate the test code from the business [...]</description>
		<content:encoded><![CDATA[<p>[...] plug-ins or fragments can be run without using test suites. In one of his previous articles (Testing Plug-ins with Fragments) he explains how fragments can be used to separate the test code from the business [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Class for name with context classloader &#171; Codescale Blog</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-355</link>
		<dc:creator>Class for name with context classloader &#171; Codescale Blog</dc:creator>
		<pubDate>Tue, 06 Jan 2009 14:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-355</guid>
		<description>[...] know that the osgi classloading it a bit different as usual. In Equinox there are also Buddies and Fragments which effect the [...]</description>
		<content:encoded><![CDATA[<p>[...] know that the osgi classloading it a bit different as usual. In Equinox there are also Buddies and Fragments which effect the [...]</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-348</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Thu, 03 Jul 2008 16:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-348</guid>
		<description>Hi Nihal,

Your approach makes sense. The only alternative I see is to create some common test plug-in that could contain reusable test classes. This would eliminate the visibility leakage issue you have, but as you say it&#039;s not really a big deal.

Thanks for posting this tip. I think it will help others trying to do fragment-based testing.

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Nihal,</p>
<p>Your approach makes sense. The only alternative I see is to create some common test plug-in that could contain reusable test classes. This would eliminate the visibility leakage issue you have, but as you say it&#8217;s not really a big deal.</p>
<p>Thanks for posting this tip. I think it will help others trying to do fragment-based testing.</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nihal</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-354</link>
		<dc:creator>Nihal</dc:creator>
		<pubDate>Thu, 03 Jul 2008 15:16:13 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-354</guid>
		<description>Hey Patrick,

We&#039;ve been using the fragment option for almost a year now.  As you may recall you helped us to get our RCP app up and running.  Anywho, in using fragments as containers for tests, I&#039;ve found that it&#039;s useful to have &quot;Eclipse-ExtensibleAPI: true&quot; in the manifest for the host plugin.  By default this value is false.  This allows fragments to contribute API to the host plugin and is useful if you want to provide utility classes and methods for testing that other test fragments can use.

For example:

ModelPlugin:
-SomeModel class

ModelTestPlugin:
-ModelTests class -- extends TestCase and provides helper methods to create SomeModel objects
-SomeModelTest -- extends ModelTests;  just for completeness :]

PresentationPlugin:
-SomePresenter class

PresentationTestPlugin:
-SomePresenterTest class -- extends ModelTests*

* Without specifying the &quot;Eclipse-ExtensibleAPI: true&quot; in the manifest for ModelPlugin, I would not be able to extend ModelTests in PresentationTestPlugin (would get compilation errors).  Of course the disadvantage to this is that now PresentationPlugin is going to have visiblity to ModelTests, but that&#039;s something I&#039;m willing to live with.  Perhaps there&#039;s still a better way yet?

Cheers,
Nihal

Reference:
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/bundle_manifest.html</description>
		<content:encoded><![CDATA[<p>Hey Patrick,</p>
<p>We&#8217;ve been using the fragment option for almost a year now.  As you may recall you helped us to get our RCP app up and running.  Anywho, in using fragments as containers for tests, I&#8217;ve found that it&#8217;s useful to have &#8220;Eclipse-ExtensibleAPI: true&#8221; in the manifest for the host plugin.  By default this value is false.  This allows fragments to contribute API to the host plugin and is useful if you want to provide utility classes and methods for testing that other test fragments can use.</p>
<p>For example:</p>
<p>ModelPlugin:<br />
-SomeModel class</p>
<p>ModelTestPlugin:<br />
-ModelTests class &#8212; extends TestCase and provides helper methods to create SomeModel objects<br />
-SomeModelTest &#8212; extends ModelTests;  just for completeness :]</p>
<p>PresentationPlugin:<br />
-SomePresenter class</p>
<p>PresentationTestPlugin:<br />
-SomePresenterTest class &#8212; extends ModelTests*</p>
<p>* Without specifying the &#8220;Eclipse-ExtensibleAPI: true&#8221; in the manifest for ModelPlugin, I would not be able to extend ModelTests in PresentationTestPlugin (would get compilation errors).  Of course the disadvantage to this is that now PresentationPlugin is going to have visiblity to ModelTests, but that&#8217;s something I&#8217;m willing to live with.  Perhaps there&#8217;s still a better way yet?</p>
<p>Cheers,<br />
Nihal</p>
<p>Reference:<br />
<a href="http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/bundle_manifest.html" rel="nofollow">http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/bundle_manifest.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Running Unit Tests for RCP and OSGi Applications &#171; RCP Quickstart: Eclipse Rich Client Platform Tips, Training and Consulting</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-353</link>
		<dc:creator>Running Unit Tests for RCP and OSGi Applications &#171; RCP Quickstart: Eclipse Rich Client Platform Tips, Training and Consulting</dc:creator>
		<pubDate>Thu, 12 Jun 2008 22:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-353</guid>
		<description>[...] why you&#8217;d want to use test fragments instead of test plug-ins, check out my previous post on Testing Plug-ins with Fragments. The problem is that even the standard suite-based solution does not work with fragments. There are [...]</description>
		<content:encoded><![CDATA[<p>[...] why you&#8217;d want to use test fragments instead of test plug-ins, check out my previous post on Testing Plug-ins with Fragments. The problem is that even the standard suite-based solution does not work with fragments. There are [...]</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-352</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Sat, 10 May 2008 02:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-352</guid>
		<description>Hi Alan,

No problem. I&#039;m glad you figured it out and that the fragments weren&#039;t increasing your test times.

-- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Alan,</p>
<p>No problem. I&#8217;m glad you figured it out and that the fragments weren&#8217;t increasing your test times.</p>
<p>&#8211; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Bram</title>
		<link>http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/comment-page-1/#comment-351</link>
		<dc:creator>Alan Bram</dc:creator>
		<pubDate>Sat, 10 May 2008 02:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-351</guid>
		<description>Hi Patrick,

Thank you for your reply.

I found out why my tests had started to take longer, and it had nothing to do with the fragment change. When I made the big change, I moved everything into a new Eclipse workspace. I cloned all the project stuff from the old workspace, but I was not clever enough to also copy all of the Eclipse metadata. I mean, of course I could have copied all of it, but I was afraid that if I had done that I might have ended up retaining confusing, conflicting settings from the old project organization. In other words, I would have liked to clone only part of the metadata, but the prospect of trying to figure out which parts are which was daunting.

So of course I had to redo a bunch of settings from scratch. I forgot that in the old days I had customized the VM parameters for my test run, to give it much more memory than the default. When I duplicated that config setting in my new workspace the tests once again started running about as fast as they used to.

So now everything&#039;s all great, and I&#039;m really happy.

Thanks again for the cool tip. And I apologize for the &quot;crying wolf&quot;.

Cheers,
 - arb</description>
		<content:encoded><![CDATA[<p>Hi Patrick,</p>
<p>Thank you for your reply.</p>
<p>I found out why my tests had started to take longer, and it had nothing to do with the fragment change. When I made the big change, I moved everything into a new Eclipse workspace. I cloned all the project stuff from the old workspace, but I was not clever enough to also copy all of the Eclipse metadata. I mean, of course I could have copied all of it, but I was afraid that if I had done that I might have ended up retaining confusing, conflicting settings from the old project organization. In other words, I would have liked to clone only part of the metadata, but the prospect of trying to figure out which parts are which was daunting.</p>
<p>So of course I had to redo a bunch of settings from scratch. I forgot that in the old days I had customized the VM parameters for my test run, to give it much more memory than the default. When I duplicated that config setting in my new workspace the tests once again started running about as fast as they used to.</p>
<p>So now everything&#8217;s all great, and I&#8217;m really happy.</p>
<p>Thanks again for the cool tip. And I apologize for the &#8220;crying wolf&#8221;.</p>
<p>Cheers,<br />
 &#8211; arb</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-350</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Fri, 09 May 2008 19:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/#comment-350</guid>
		<description>Hi Alan,

Can you tell me how your tests were structured before? Were they in the same plug-in as the code under test or in a separate test plug-in? If the tests were in the same plug-in, the extra time could be related to loading the fragment into memory, but I&#039;m not sure.

It would be interesting to run those tests using a profiling tool to see where the extra time is going. I&#039;d also be interested to know whether there is a scaling 50% increase in time for tests or whether there is simply a 10 second penalty.

I&#039;ll try to look into this at some point but I&#039;m pretty buried at the moment :-) If you find out anything, please let me know.

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Alan,</p>
<p>Can you tell me how your tests were structured before? Were they in the same plug-in as the code under test or in a separate test plug-in? If the tests were in the same plug-in, the extra time could be related to loading the fragment into memory, but I&#8217;m not sure.</p>
<p>It would be interesting to run those tests using a profiling tool to see where the extra time is going. I&#8217;d also be interested to know whether there is a scaling 50% increase in time for tests or whether there is simply a 10 second penalty.</p>
<p>I&#8217;ll try to look into this at some point but I&#8217;m pretty buried at the moment :-) If you find out anything, please let me know.</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
</channel>
</rss>
