Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Junit4 plugin test doesn'r run: "Test class not found in selected project"
Junit4 plugin test doesn'r run: "Test class not found in selected project" [message #581227] Wed, 24 September 2008 16:02
David is currently offline DavidFriend
Messages: 3
Registered: July 2009
Junior Member
Hi, I was trying to make a simple test (just to learn how junit works for
plugin tests before start making the real tests) of my plugin, but I've
been unable to make it run so far.

First of all, I'm using Eclipse 3.3.2 (using Eclipse 3.4 is not an option
right now) and Junit4. I've generated a test class using the wizard, so
there's little room for mistakes here. To run the test, I click with the
right button of the mouse, bring up the menu, and select Run as-> Junit
Plug-in test. Then, a new view is opened and shows me the results, but the
test is not really run, because there's an exception during initialization:

Unrooted test:[Runner Junit ] it says "Test class not found in selected
project".

Now, my first problem is I haven't found anything specifically about
plugin testing with junit4. I've read:

http://www.vogella.de/articles/JUnit/article.html

but, as many other resources, it explains how to use junit inside eclipse
to test other kind of projects, not plugins. Is there any article about
this? I think I might have missed something in the setup of my environment
when getting ready to make the tests.
Previous Topic:Junit4 plugin test doesn'r run: "Test class not found in selected project"
Next Topic:Make plugins for legacy Java code
Goto Forum:
  


Current Time: Fri Apr 26 15:34:27 GMT 2024

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

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

Back to the top