facebook

how to run single JUnit test case in MyEclipse blue 8.6

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #313217 Reply

    jyy
    Member

    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

    #313239 Reply

    support-swapna
    Moderator
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: how to run single JUnit test case in MyEclipse blue 8.6

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in