MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jyy
Post subject: how to run single JUnit test case in MyEclipse blue 8.6  PostPosted: Dec 10, 2010 - 03:07 PM



Joined: Dec 10, 2010
Posts: 2

I have created a source test folder and all my test cases are under that folder. I am using SpringJUnit4ClassRunner with JUnit 4.4

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:applicationContext.xml" })
@TestExecutionListeners({DependencyInjectionTestExecutionListener.class})
public abstract class AbstractTest {}

I can run all the tests by click on my project and right mouse click and from Run As -> Maven test.

But when I choose the individual test and right mouse click and from Ran As I don't get "JUnit test". If I open my test java file and then choose the individual test from the project explore and right click and from Run As I DO get "Junit test" but when I choose this option I get "No JUnit test found".

Please advice
 
 View user's profile Send private message  
Reply with quote Back to top
colingaj
Post subject: RE: how to run single JUnit test case in MyEclipse blue 8.6  PostPosted: Dec 16, 2010 - 08:55 PM



Joined: Dec 16, 2010
Posts: 1

I also have the same problem. Any ideas anyone?
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits