How can I have the tests for my Rails app to be executed in a random order? Is there a simple solution using rake?
相关问题
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- Unity - Get Random Color at Spawning
- ruby 1.9 wrong file encoding on windows
相关文章
- Ruby using wrong version of openssl
- Web Test recorder does not allow me to record a te
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- why 48 bit seed in util Random class?
- Factory_girl has_one relation with validates_prese
- Segmentation fault with ruby 2.0.0p247 leading to
Here you go, define this in
lib/tasks/tasks.rb
Run:
rake test:randomize:all
Keep in mind that within file tests will still be executed in the order they appear. I guess you could monkey patch test unit to allow for that.
You may wish to check out "ZenTest 3.9.0: now with more Evil" (can't do a direct link, use google's cache)