Guard::Cedar Build Status Dependency Status Code Climate

guard-cedar automatically recompiles your source and launches the Cedar spec runner application when files are modified.

Install

Please be sure to have Guard installed before continue.

Install the gem:

$ gem install guard-cedar

Add it to your Gemfile (inside development group):

group :development do
  gem 'guard-cedar'
end

Add guard definition to your Guardfile by running this command:

$ guard init cedar

You will need to edit the Guardfile

guard 'cedar', :project_path => 'YourProject.xcodeproject', :target => 'YourSpecs' do
  watch(%r{^YourSpecs/.+Spec\.mm$})
  watch(%r{^YourProject/.+(\.m|\.h)$})
end

Options

By default, Guard::Cedar builds a Release configuration, which you can override with the :configuration option:

guard 'cedar', :configuration => 'Debug' do
  # ...
end

Guard::Cedar can build against another version of the iOS SDK if you set the :sdk_version option:

guard 'cedar', :sdk_version => '7.0' do
  # ...
end

If you want to set an environment variable, you can configure :env option with a hash:

guard 'cedar', :env => {'CEDAR_REPORTER_OPTS' => 'nested'} do
  # ...
end

Usage

Please read Guard usage doc

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Send me a pull request. Bonus points for topic branches.

Thanks and Attribution

License

See LICENSE for more information.