• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Run as Junit Test case

 
Suresh Vasa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I have a JUnit Testcase in my project, When I right click on it , I should see Run As -> JUnit Test Case, but I am seeing only 'Run Configurations',
Any help is appreciated. Thanks
 
Suresh Vasa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, btw I am using Eclipse(Helios).
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your test case contain any tests?
 
Suresh Vasa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a TestingSuite*.java and it contains a number of methods which extends ultimately a JUnit test case. When I right click on one of those methods in the outline and go to Run As >, I should see not only Run configurations, but also JUnit Test...,which I am not seeing..

Thanks
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have a TestSuite that extends TestCase? Is that not a little bit confusing?

Do you have a JUnit library defined for you project?
 
Suresh Vasa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a testsuite which contain testcases, not the test suite, but the test cases extend junit test case. BTW how to check if Junit library is defined for my project?

Thanks
 
Suresh Vasa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could resolve it with some hints from my friend. Basically, the project in my workspace is not configured as a project like a Java Project or a Web Project. It just stayed there as a resource. That's why all java related functionality was not applied to that resource. When I configure a new project using that resource, I could get the JUnit tests showing up. I know it's quite basic. Just sharing the info here for people like me
 
tom pine
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
interesting for me,thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic