Greener

Circle CI Code Climate Coverage Status Gem Version Inline docs

Keep your Cucumber and Spinach feature files greener :four_leaf_clover: with this configurable linter

NOTE: This project is still under early-stage development

TODOs

  1. Move "results printing" logic to configurable formatters
  2. Implement some kind of hooks system for use by formatters, similar to this
  3. Create a RakeTask class for use in CI systems
  4. Add coloring for formatters

Usage

Install the gem

gem install greener

The greener binary takes a single argument, -c path/to/config/greener.yml. See the defaults for an example of this file.

View the changelog for recent changes.

Contributing

Install dev dependencies locally

bundle install

Run tests

bundle exec rake test

View code coverage

rake && open coverage/index.html

Testing

To test the greener binary locally, cd to the repo root and run

RUBYLIB=lib bundle exec ruby bin/greener

Based on this answer.

References

  1. http://guides.rubygems.org/make-your-own-gem/
  2. http://whatisthor.com/
  3. https://github.com/erikhuda/thor/wiki/Integrating-with-Aruba-In-Process-Runs
  1. http://stackoverflow.com/questions/12673485/how-to-test-stdin-for-a-cli-using-rspec
  2. https://github.com/livinginthepast/aruba-rspec
  1. https://github.com/bbatsov/rubocop/tree/master/lib/rubocop