jkutner / guard-jruby-rspec

RSpec on JRuby without the startup cost.
MIT License
62 stars 16 forks source link

Cli options #5

Closed semperos closed 12 years ago

semperos commented 12 years ago

Would it be possible to add the :cli options one can pass to guard-rspec?

jkutner commented 12 years ago

yes! coming soon.

semperos commented 12 years ago

Sweet. Thank you for doing this work!

jkutner commented 12 years ago

fixed in 0.1.2. but read the readme because it's a little different than guard-rspec.

semperos commented 12 years ago

Thanks for your quick work on this, I'll try it out!

semperos commented 12 years ago

So passing in ["--format", "documentation"] worked pretty much as expected (output was a little different than I'm used to), but the following did not work:

["--tag", "~integration:true"]

This is the way I've been configuring my spec runs to exclude specs I've tagged as integration. However, using guard-jruby-rspec, my integration tests are still run. Is there another way to configure this via the cli args?

jkutner commented 12 years ago

try ["-t~integration:true"]. i know it's odd, but it's what the RSpec runner (a part of rspec-core) is expecting.

semperos commented 12 years ago

Thanks, that worked. Is there some documentation you referenced?

jkutner commented 12 years ago

no, i figured that out by trial and error :) Here is the method that's being called: https://github.com/rspec/rspec-core/blob/master/lib/rspec/core/runner.rb#L56

semperos commented 12 years ago

Alrighty, thanks for all the help!