Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

skip tests in class after a failure.

 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys : How can i set a class up to "skip" tests after the first failure ? Or maybe (a hack , but will work for my purposes) is there an accepted
way to run tests in a certain order ?

That is , I have a class



I know there are jars that allow this, but I want to stick with junit standards, since this isnt really a huge deal.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The real answer is no. JUnit tests are meant to be independent.
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is nice . this would work i think .......
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic