Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to run junit test in eclipse  RSS feed

 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am writing Testcase for testing Struts2 action class and created one Testclass by extending StrutsSpringTestcase. Any idea how to run this test case in eclipse IDE?

 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What error message did you get when trying Run As > JUnit test?
 
enric jaen
Greenhorn
Posts: 27
 
enric jaen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My experience writting struts/spring action tests is that it duplicates acceptance tests.

I would just write acceptance tests (such as selenium) and I'd forget about action tests.

It's only my opinion, I'd like to hear what others say.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!