• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Ant JUnit Reports.

 
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?
 
author & internet detective
Posts: 40283
819
Eclipse IDE VI Editor Java
  • 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
Posts: 40283
819
Eclipse IDE VI Editor Java
  • 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!
 
please buy my thing and then I'll have more money:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic