When performing unit and functional tests using rake in a rails application, I notice that there is an initial value specified on the command line: - seed x
$ rake test (in /code/blah) Loaded suite /../ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake/rake_test_loader Started . Finished in 0.12345 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 skips Test run options: --seed 20290
I assume that this value can be used in tests, but I cannot figure out how to do this. I tried Google, Rails Guides, etc. but can not find the answer.
EDIT:
Could this seed value be a parameter that Minitest uses to randomize the order in which tests are run?
ruby-on-rails rake
VirtualStaticVoid May 04 '11 at 8:21 2011-05-04 08:21
source share