File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Testing
Reply 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: 26138
    
  66



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
Amazon reviewer's opinion on the Title of "The Object Primer"
Test Suites
state of art
Exception testing
package junit.framework does not exist