Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

How can I add a custom command option for rspec --order like rspec --order prioritized #3024

Closed
@Aiderlei

Description

@Aiderlei

Hey,

I am working on a gem to prioritize specs in a specific order and just realized that calling rspec path_1 path_2 path_3 applies the preset ordering to path_1, path_2, path_3 instead of running it in passed order.

So I was wondering how can I achieve this the easiest way.

As far as I know by now I would have to use register_ordering and looked at some example for that. So far so good, but how would I add an option to use my newly defined order from command line?

Thanks!

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