Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tgrushkasm opened this issue Aug 27, 2020 · 2 comments

Comments

@tgrushkasm
Copy link

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.

@AstmDesign
Copy link

I'm also searching about the best way to run guard for models only or features only or all!!
I think we will add tasks for that in the Guardfile but still search about the best way

@andrewhavens
Copy link

@tgrushkasm @AstmDesign Did you run guard init rspec? Or did you see the examples in the readme? There are already a few ways you could do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants