Method: RSpec::Core::Configuration#seed
- Defined in:
- lib/rspec/core/configuration.rb
#seed ⇒ void
Seed for random ordering (default: generated randomly each run).
When you run specs with --order random
, RSpec generates a random seed
for the randomization and prints it to the output_stream
(assuming
you're using RSpec's built-in formatters). If you discover an ordering
dependency (i.e. examples fail intermittently depending on order), set
this (on Configuration or on the command line with --seed
) to run
using the same seed while you debug the issue.
We recommend, actually, that you use the command line approach so you don't accidentally leave the seed encoded.
1691 |
# File 'lib/rspec/core/configuration.rb', line 1691 delegate_to_ordering_manager :seed |