Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Junit Plugin Test: No tests found
Junit Plugin Test: No tests found [message #207117] Fri, 17 June 2005 12:13 Go to next message
Sami Lakka is currently offline Sami LakkaFriend
Messages: 47
Registered: July 2009
Member
Hi,

I have a correct test case for a plugin but when I try to run it using the
Run as-> Junit Plugin Test, I'm getting AssertionFailedError: No tests found
for ...

What can cause this? I'm using Eclipse 3.0.


- Sami
Re: Junit Plugin Test: No tests found [message #207121 is a reply to message #207117] Fri, 17 June 2005 13:00 Go to previous messageGo to next message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
> I have a correct test case for a plugin but when I try to run it using
> the
> Run as-> Junit Plugin Test, I'm getting AssertionFailedError: No tests
> found
> for ...

I had the exact same problem and needed 16 hours to solve it. Hence I dont
know what actually the solution was.
My setup was one plugin with sourcecode and testcode. I got the error when
I ran the testcode and _nothing_ was written to the error logs. I changed
the setup and created a seperate plugin with the testcode. I got the same
error again. The solution to the problem was very silly: I misspelled the
plugin class in the plugin.xml file of the test plugin. With the correct
spelled class name everything worked fine. Misspelling the class name
yielded the error again. So this was my problem.

But I do not understand why I got the error in the first setup, as the
plugin itself was fully functional and the plugin.xml was not altered for
weeks.

HTH,

Ricky
Re: Junit Plugin Test: No tests found [message #207155 is a reply to message #207117] Fri, 17 June 2005 18:10 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Sami Lakka wrote:
> Hi,
>
> I have a correct test case for a plugin but when I try to run it using the
> Run as-> Junit Plugin Test, I'm getting AssertionFailedError: No tests found
> for ...

Does your test have a "public TestSuite suite()" method? It don't think
it will run without one.

PW


Re: Junit Plugin Test: No tests found [message #207544 is a reply to message #207117] Wed, 22 June 2005 05:30 Go to previous message
Sami Lakka is currently offline Sami LakkaFriend
Messages: 47
Registered: July 2009
Member
Hi,

I finally managed to solve this problem. It seems that the issue was caused
by the fact that I didn't have org.junit_3_8_1 plugin in my plug-in
dependencies. Adding this to there made the tests run ok. I wonder why the
Run as -> Junit Plugin Test command doesn't check that the correct plugins
have been defined because the error message didn't make any sense.

"Sami Lakka" <sami.lakka@tut.fi> kirjoitti
viestiss
Previous Topic:Images/icons in TableTreeViewer?
Next Topic:Syncing Projects On 2 Computers
Goto Forum:
  


Current Time: Wed Apr 24 14:08:39 GMT 2024

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

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

Back to the top