greener

Circle CI Code Climate Coverage Status

A Gherkin .feature file 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

Contributing

Install dev dependencies locally

bundle install

Run tests

bundle exec rake test

View code coverage

rake && open coverage/index.html

View code coverage from RSpec unit tests only

rm -rf coverage && rspec && 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