cch
CCH - Run your test suite for just changed files
You just need to run:
cch
And then cch will:
- List changed files using git commands
- Expand files using regexp
- Run with these files your tests, code lints
gem status
Installation
gem install cch
Usage
cch
Or specify the runners:
cch rspec rubocop
Configuration
After running cch for the first time, a config file is created with:
Cch::Runner.run [:rubocop, :haml_lint, :rspec, :cucumber]
Cch comes with some basic configuration for:
- rspec
- rubocop
- haml_lint
- cucumber
You can create your own configuration in your cchfile.rb
. Use the following configuration files as the base for it:
You can also change the default configurations for existing runners.
Development
git clone git@github.com:vnegrisolo/cch.git
./bin/setup
bundle exec rake
You can also run bin/console
for an interactive prompt that will allow you to experiment.
Install locally
bundle exec rake install
gem install --local pkg/cch*.gem
Release a new version
Change version.rb
file, commit, push and then:
bundle exec rake release
This will deploy a new release on rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/vnegrisolo/cch. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.