• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant JUnit Reports.

 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

Had one question about ant junit reports. The thing that i am running a test suite to run.... lets say, 10 test cases and lets say the 6th test case fails and does not run the other 4 test cases. In the report i see all the 10 test cases mentioned. Is there a way to remove the 4 test cases from the report, because the test cases were not run anyways?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34863
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somnath Mallick wrote:Had one question about ant junit reports. The thing that i am running a test suite to run.... lets say, 10 test cases and lets say the 6th test case fails and does not run the other 4 test cases.

Something sounds wrong. JUnit doesn't let you skip running tests if earlier ones fail as far as I know. (TestNG does.) How are you skipping the later test cases.
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a custom runner to skip test cases. I was looking for some information on how to skip JUnit test cases, and came across custom runners, so i coded myself one by looking at online guides.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34863
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah. So your custom runner isn't integrating with Ant the way you like. That's not a standard scenario. You are going to need to read the Ant source code to see where they get the count from.
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Noooooooooooo..... I am being pushed into the darkness!

Going through the Ant Junit source code should be tough!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic