Greener
Keep your Cucumber and Spinach feature files greener 🍀 with this configurable linter
NOTE: This project is still under early-stage development
TODOs
- Move "results printing" logic to configurable formatters
- Implement some kind of hooks system for use by formatters, similar to this
- Create a RakeTask class for use in CI systems
- 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
CLI related
- http://guides.rubygems.org/make-your-own-gem/
- http://whatisthor.com/
- https://github.com/erikhuda/thor/wiki/Integrating-with-Aruba-In-Process-Runs
Testing related
- http://stackoverflow.com/questions/12673485/how-to-test-stdin-for-a-cli-using-rspec
- https://github.com/livinginthepast/aruba-rspec