Junit4 plugin test doesn'r run: "Test class not found in selected project" [message #581227] |
Wed, 24 September 2008 16:02 |
David 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.
|
|
|
Powered by
FUDForum. Page generated in 1.06523 seconds