Skip to content

Support test splitting in rspec when given individual specs #425

@jonathanyeong

Description

@jonathanyeong

We're implementing test selection internally and our test selection algorithm spits out a file with individual rspec specs. E.g.

./spec/models/user.rb[1:1]
./spec/models/user.rb[1:1:1:1]
./spec/models/user.rb[1:1:1:3]
./spec/models/user.rb[1:1:1:4]
./spec/models/user.rb[1:1:1:5]
./spec/models/user.rb[1:1:1:6]

If we ran the ./spec/models/user.rb we would test more than is needed. As far as I know, bktec doesn't handle splitting across individual specs but only on file globs. Is that correct?

Feel free to close this issue if this is not the right place for it! Thanks for all your help in advance.

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