SmartTest
Run tests based on file last modifed at and git diff.
Now only rspec is supported!
Installation
$ gem install smart_test
Usage
Under the root of a project with test files, you can run:
Run latest modified test file
$ smart_test
Run latest modified 3 test files
$ smart_test 3
Run test files based on git diff, -d can be skipped if it has param
$ smart_test -d
$ smart_test -d master
$ smart_test HEAD~2
$ smart_test GIT_HASH
Show the test files which will be running
$ smart_test -d master -s
Contributing
- Fork it ( https://github.com/[my-github-username]/smart_test/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