Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » [SOLVED] Eclipse Test Cases
icon10.gif  [SOLVED] Eclipse Test Cases [message #769503] Thu, 22 December 2011 07:34 Go to next message
Kivanc Muslu is currently offline Kivanc Muslu
Messages: 153
Registered: November 2010
Senior Member
Hi all,

I guess this is two part question:
1- Is there a convenient way to write Eclipse plug-in tests (I guess normal JUnit tests won't work here)
2- Does Eclipse's tests (I am sure they have many) are accessible by public? If yes, could someone give me a link (or a starting point)?

Thanks in advance, best regards,

Edit: The answer given by Dani is exactly right. Thank you Dani,

[Updated on: Fri, 14 December 2012 14:40]

Report message to a moderator

Re: Eclipse Test Cases [message #775610 is a reply to message #769503] Fri, 06 January 2012 10:59 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 22.12.2011 08:34, Kivanc Muslu wrote:
> Hi all,
>
> I guess this is two part question:
> 1- Is there a convenient way to write Eclipse plug-in tests (I guess
> normal JUnit tests won't work here)
The tests look the same as normal JUnit tests except that they probably
access the workspace and/or workbench. In order to launch such tests you
launch them with a special launcher (Run As > JUnit Plug-in Test).

> 2- Does Eclipse's tests (I am sure they have many) are accessible by
> public? If yes, could someone give me a link (or a starting point)?
Yes, build's download page also has the framework and the tests, e.g.
http://download.eclipse.org/eclipse/downloads/drops/S-3.8M4-201112091447/index.php#JUnitPlugin

Or you can get the source from the Git repositories, e.g.
http://git.eclipse.org/c/platform/eclipse.platform.text.git/tree/org.eclipse.ui.editors.tests

Dani
>
> Thanks in advance, best regards,
Previous Topic:Scrapbook
Next Topic:Key Preference Page
Goto Forum:
  


Current Time: Thu Oct 23 02:00:34 GMT 2014

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

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