Module: TestProf::RSpecSample
- Defined in:
- lib/test_prof/recipes/rspec/sample.rb
Overview
Add ability to run only a specified number of example groups (randomly selected)
Instance Method Summary collapse
Instance Method Details
#ordered_example_groups ⇒ Object
6 7 8 9 |
# File 'lib/test_prof/recipes/rspec/sample.rb', line 6 def ordered_example_groups @example_groups = @example_groups.sample(ENV['SAMPLE'].to_i) unless ENV['SAMPLE'].nil? super end |