facebook

how to run single JUnit test case in MyEclipse blue 8.6

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #313216 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

    #313312 Reply

    colingaj
    Member

    I also have the same problem. Any ideas anyone?

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

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