Project

greener2

0.0
No commit activity in last 3 years
No release in over 3 years
Keep your Gherkin readable with the greener linter...
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.6.2
>= 1.9.5
~> 0.7.9
~> 10.0
~> 3.3.0
~> 0.32.0
~> 0.9.1

Runtime

~> 4.0.0
~> 0.19.1
~> 1.3.0
 Project Readme

Greener

Circle CI Code Climate Coverage Status Gem Version Inline docs

Keep your Cucumber and Spinach feature files greener 🍀 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

CLI related

  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

Testing related

  1. http://stackoverflow.com/questions/12673485/how-to-test-stdin-for-a-cli-using-rspec
  2. https://github.com/livinginthepast/aruba-rspec

Lint related

  1. https://github.com/bbatsov/rubocop/tree/master/lib/rubocop