Skip to main content



      Home
Home » Eclipse Projects » Equinox » How do you guys organize tests for plugins ?
How do you guys organize tests for plugins ? [message #116472] Sun, 24 August 2008 23:37 Go to next message
Eclipse UserFriend
Hi all,

I was wondering how you plugin developers organize unit test for each
plugin you develop.

There're 2 options I can think of so far:

1. Place the unit test codes in separate plugin created exclusively to
contain unit test for plugins.

This is what I do now, but this approach forces you to make some
methods/classes public just to be accessible by test codes.

2. Place them in the same plugin to be tested under different source
directory.

This to some degree relieves the above problem but then we have to specify
dependencies to the testing framework in the plugin.xml which adds
maintenance burden when deploying to production.

Or is there any other alternatives that I'm missing here ?

Any advice shared would be greatly appreciated.


Best Regards,

Setya
Re: How do you guys organize tests for plugins ? [message #116478 is a reply to message #116472] Mon, 25 August 2008 00:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

This thread
http://dev.eclipse.org/newslists/news.eclipse.technology.equ inox/msg01431.html,
suggests that we put the tests in separate bundle and implement a fragment
to expose the private members of tested bundles. Does anybody have example
on this practice ?

Regards,

Setya
Re: How do you guys organize tests for plugins ? [message #116492 is a reply to message #116478] Mon, 25 August 2008 10:54 Go to previous message
Eclipse UserFriend
Setya,

I can tell you that I use the fragment method for containing my unit
tests. I get around the problem of making everything public by putting my
unit tests in the same packages as the classes I'm testing. I find it
works well enough for unit tests.

Setya wrote:

> Hi,

> This thread
>
http://dev.eclipse.org/newslists/news.eclipse.technology.equ inox/msg01431.html,
> suggests that we put the tests in separate bundle and implement a fragment
> to expose the private members of tested bundles. Does anybody have example
> on this practice ?

> Regards,

> Setya
Previous Topic:ClassNoDefException when an instance of my ClassLoadingHook is created
Next Topic:P2 API current progress
Goto Forum:
  


Current Time: Sat Jul 26 03:49:16 EDT 2025

Powered by FUDForum. Page generated in 0.03397 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top