Skip to content

How the heck do I run guard spec/models or guard spec/requests/something.rb? #420

Description

@tgrushkasm

Dug through the code. Found :chdir as a potential option. No luck. It still force-appends the spec dir at the end of the rspec command as if I always want to run the entire spec directory.

Yeah, I sometimes don't want to use focus: true because, well, it has to load the entire test suite anyway, and that adds like 5-10 seconds every run even with spring. I just want to run rspec spec/somedir over and over in guard. That would be sweet.

Even something like:

guard :rspec, cmd: 'bin/rspec', dirs: ARGV

or something like that would be awesome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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