Skip to content

Seed parameter to reproduce a failed test #80

Description

@lake-effect

Say you have a lot of data as your test input. When you get a failure message, rantly/rantly-rspec ends up telling you so much that you can't use it for reproducing regressions:

3 successful tests, failed on:
       [#<ActiveRecord::Relation [#<SomeRecord id: nil, label: "some_label", value: 0.1241e4>, #<SomeRecord id: nil, label: "some_other_label", value: 0.2577e4>, #<SomeRecord id: nil, label: "some_label", value: 0.1233e4>, #<SomeRecord id: nil, label: "some_other_label", value: 0.1143e4>, #<SomeRecord id: nil, label: "some_label", value: 0.2001e4>, #<SomeRecord id: nil, label: "some_other_label", value: 0.596e3>, #<SomeRecord id: nil, label: "some_label", value: 0.1926e4>, #<SomeRecord id: nil, label: "some_other_label", value: 0.1309e4>, #<SomeRecord id: nil, label: "some_label", value: 0.2292e4>, #<SomeRecord id: nil, label: "some_other_label", value: 0.1136e4>, ...]>, "day"]

...

Randomized with seed 61833

It turns out that running rspec --seed 61833 doesn't reproduce this input set either.

Is there a shorthand way to tell rspec + rantly to run this exact test again?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions