This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Testing and the fly likes skip tests in class after a failure. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "skip tests in class after a failure. " Watch "skip tests in class after a failure. " New topic
Author

skip tests in class after a failure.

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
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

Joined: May 26, 2003
Posts: 32507
    
214



The real answer is no. JUnit tests are meant to be independent.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
this is nice . this would work i think .......
 
Have you checked out Aspose?
 
subject: skip tests in class after a failure.
 
It's not a secret anymore!