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