Using the seed value from rake in unit and functional tests

When running unit and functional tests using rake, on a rails application, I notice that there is a seed value which is 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 it is possible to use this value in the tests, but I can't figure out how. Я пробовал Google, Rails Guides и др. но, похоже, не могу найти ответ.

РЕДАКТИРОВАТЬ:

Может ли это начальное значение быть опцией, которая используется Minitest для рандомизации порядка выполнения тестов?

57
задан VirtualStaticVoid 12 May 2011 в 12:31
поделиться