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

Additional options #4

Merged
merged 5 commits into from
Mar 3, 2013
Merged

Additional options #4

merged 5 commits into from
Mar 3, 2013

Conversation

wojtha
Copy link
Contributor

@wojtha wojtha commented Feb 25, 2013

This pull request is based on fork by @mattconnolly who added the all_on_start option and fork by @keyvanfatehi who added the generate option.

And my contribution is command_prefix which is inpired by the similar functionality of the guard-cucumber gem, and some tests. I'm using this option currently in conjuction with Zeus.

Options

all_on_start
Boolean. Run all features on start.
generate
Boolean. Auto generate missing step files during each run.
command_prefix
String. Allows you to inject something before the `spinach` command. E.g. `zeus spinach`.

Example Guardfile snippet

guard 'spinach', command_prefix: 'zeus', all_on_start: true, generate: true do
  watch(%r|^features/(.*)\.feature|)
  watch(%r|^features/steps/(.*)([^/]+)\.rb|) do |m|
    "features/#{m[1]}#{m[2]}.feature"
  end
end

@mattconnolly
Copy link

I just learned about zeus the other day. This sounds good!

@oriolgual
Copy link
Member

Great work @wojtha! Thank you :)

oriolgual added a commit that referenced this pull request Mar 3, 2013
@oriolgual oriolgual merged commit d14c030 into codegram:master Mar 3, 2013
@oriolgual oriolgual mentioned this pull request Mar 3, 2013
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

Successfully merging this pull request may close these issues.

3 participants