aspose file tools*
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
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29261
    
140



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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
this is nice . this would work i think .......
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: skip tests in class after a failure.
 
Similar Threads
Exception testing
Amazon reviewer's opinion on the Title of "The Object Primer"
Test Suites
state of art
package junit.framework does not exist