On Sep 8, 3:01 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote: > Piero Di Bello wrote: > > Hi > > How can I have the tests for my Rails app to be executed in a random > > order? > > At least with RSpec, specs are executed in unpredictable order. I think > it's the same each time, but it's not the order in which they appear in > the spec file. >
Unfortunately we don't use Rspec on our project, although I think we may give it a try > But why do you need this anyway? Each test should start from a clean > slate, so the order should be completely immaterial. Well, actually, the answer is in your words :-) Each test *should* start from a clean state, but what if it doesn't? For us it's a great value to have a suite of test executed every time in a random order (better, every single test method in every test class should be "shuffled"). Dependency between tests is a really bad anti-pattern, and we want to know if this happens as soon as possible. anyway, thanks for your response, Piero > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > [email protected] > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

