Re: test-junit failed

David Saff <[email protected]> Thu, 31 Oct 2013 14:39:07 -0400
Newsgroups gmane.comp.java.junit.user
Message-ID <CALrw-Pwz8Xyz+Q5nS6DGQQUQRKO=U7TN9gHxk24fS3DSMWp-5Q@mail.gmail.com>
Gerard,

I don't think there's an easy single switch to reverse the entire
execution.  However, if you reversed the return value of
ParentRunner#getFilteredChildren, you'd probably get pretty close to what
you want.  Good luck!

   David Saff


On Tue, Oct 29, 2013 at 10:53 AM, Gerard Meszaros <[email protected]>wrote:

> **
>
>
> A client suspects some of their tests depend on the order of test
> execution and
> wants to find out which one. Is there any way to cause all the tests in
> the
> entire test suite (not just in one class) to be run in a different order?
> Ideally, I'd like to run them in reverse order using a command line
> switch.
> Failing that, what single place in the code base could I change to affect
> this?
> (In JUnit 3.x, one could override a method (runBare?) in the test runner
> to
> iterate through the collection of sub-tests in reverse order.)
>
> Thanks,
>
> Gerard
>
> --
> Gerard Meszaros
> Lean/Agile Coach/Mentor/Trainer
> http://www.gerardmeszaros.com
> 1-403-827-2967
>
> Author of the Jolt Productivity Award winning book "xUnit Test Patterns -
> Refactoring Test Code". Learn more at http://xunitpatterns.com/index.html
>
>  
>