Skip to content

Guards with multiple criteria #43

@MSP-Greg

Description

@MSP-Greg

@eregon

I'm re-writing ruby-loco, similar to what I helped with in Core. I've got a few spec patches that remove guards placed around tests for mingw.

But, I've only been testing with trunk, I'm now locally checking them with older Ruby versions. I need a guard to skip a test like is :mingw and RUBY_VERSION < '2.4.0'.

Any suggestions or prefererence?

Re the Ruby version guards, it would be helpful if there was something like less_than and greater_than (or greater_than_or equal). Is there something similar to that?

Lastly, I need to spend more time looking at all the options in mspec. Is there a way to output all skipped tests? In testing, the numbers jump around a little, but some may be due to parallel testing. BTW, things got a bit squirrely with --random...

Thanks, Greg

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