Skip to content

why are steps still randomized #33

@jpwynn

Description

@jpwynn

Given spec/features/test_spec.rb

require 'rails_helper'
require 'rspec-steps'
RSpec::Steps.steps "why are these steps done in random order?" do 
  it "step 1" do
    expect("a").to eq("a")
  end
  it "step 2" do
    expect("a").to eq("a")
  end
  it "step 3" do
    expect("a").to eq("a")
  end
  it "step 4" do
    expect("a").to eq("a")
  end
end

running rspec spec/features/test_spec.rb twice gives:

why are these steps done in random order?
  step 1
  step 4
  step 3
  step 2
Finished in 0.09078 seconds (files took 2.48 seconds to load)
4 examples, 0 failures
Randomized with seed 57459

and then:

why are these steps done in random order?
  step 2
  step 4
  step 1
  step 3
Finished in 0.08662 seconds (files took 2.5 seconds to load)
4 examples, 0 failures
Randomized with seed 39988

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions