It matches 'class Foo' in your application.
It matches 'Foo' in your test suite.
There is no class name starting with that letter.
It matches 'class Foo' in your application.
It does not match 'Foo' in your test suite.
This is also lenient in the way that it scores green letters. If you have defined two classes Foo, and Foosball, and you only have a test for Foo, you will still get a green letter.
To get a red letter means that any class name starting with that letter is not present in your test suite.
$ abcing /path/to/project/root
Right now this will check /path/to/project/root/spec and /path/to/project/root/features to find test files. It will use app/ and lib/ to find classes that should be tested.
Add this line to your application's Gemfile:
gem 'abcing'
And then execute:
$ bundle
Or install it yourself as:
$ gem install abcing
$ bundle exec rspec
- Fork it ( https://github.com/emileswarts/abcing/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Check for presence of config file for scan params
- Add verbose mode that mentions the class names scanned for results
- Add score results
- Improve performance
- Create badge for results to be used on github
- Add strict mode
[ Class names ] -> AlphabetMatch.letters -> [ Class letters ]
[ Directories ] -> ClassFileFinder.find -> [ Files ]
[ Contents ] -> ClassNameFinder.find -> [ Class names ]
[ Test letters, App letters ] -> ColourAlphabetResult.calculate -> { colour => letter }
Root working directory -> Runner.run -> Renderer.render
{ Scan Results } -> Renderer.render -> IO