DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Eclipse JUnit 4 Plug-in Test
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Feb 2008
Default Eclipse JUnit 4 Plug-in Test - 02-19-2008, 06:12 AM

Hi there,

I have an Eclipse plug-in here that I develop and a fragment that adds unit tests to the plug-in. I have added a dependency to the JUnit 4 plug-in "org.junit4" to the fragment.

I can run the unit tests in the fragment using a plain JUnit launch configuration. When trying to run the tests as a JUnit Plug-in test launch configuration, the tests are not executed. I do not see any errors. The tests just don't seem to be executed.

Eclipse is vanilla "Europa Fall 2" release. Java is Sun 1.6.0_03. JUnit 4 plug-in in there is 4.3.1. Any help would be very much appreciated.

Cheers,
Joerg
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Aug 2009
Default 09-25-2009, 10:36 AM

Quote:
Originally Posted by misterb View Post
Hi there,

I have an Eclipse plug-in here that I develop and a fragment that adds unit tests to the plug-in. I have added a dependency to the JUnit 4 plug-in "org.junit4" to the fragment.

I can run the unit tests in the fragment using a plain JUnit launch configuration. When trying to run the tests as a JUnit Plug-in test launch configuration, the tests are not executed. I do not see any errors. The tests just don't seem to be executed.

Eclipse is vanilla "Europa Fall 2" release. Java is Sun 1.6.0_03. JUnit 4 plug-in in there is 4.3.1. Any help would be very much appreciated.

Cheers,
Joerg
Hi Joerg,
I am afraid that I won't be able to help you with your problem, but I have a question for you. I am currently researching on JUnit because soon I will have to write Unit tests for one plugin or at least for some parts of it and I was looking to find some example of such tests but I couldn't found the only ones that I found were about some simple classes. So I am asking you if you could give some piece of example how exactly you made your test. Are there any peculiarities if it's no big trouble for you of course
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to find plug-in: org.eclipse.core.resources.win32_0.0.0 bomantz Eclipse 1 03-26-2009 06:08 AM
To create view tab (automatically refreshing) in the Custom Eclipse Plug in , that sh thejes Eclipse 1 03-26-2009 06:03 AM
Junit test cases for a plugin failing when run from command line. sahuabinash Eclipse 0 09-17-2008 06:11 AM
Testing a C++ from JUnit ryan.lea Testing & QA 0 07-28-2008 11:05 PM
Help please with complex JUNIT test cases across classes patwa Java 0 05-07-2008 09:46 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com