The purpose of this gem is to run my Minitest specs, with no hassle. No Rakefile updates, no Gemfile/gemspec installs, and no regex Guard files.
Just. Run. The. Tests.
Install the gem. Type "sb" in your command line. All of the tests in your current directory are run.
Starting Blocks runs all files that have a "test" or "spec" prefix or suffix. Like:
It also looks for matches between "non-test" files and spec files. So if "apple.rb" is updated and "apple_spec.rb" exists, Starting Blocks will run the "apple_spec.rb" tests.
Run all of your Minitest tests and specs in your current directory and all child directories:
sb
Run the tests in any test or spec file after it is saved. Will also run the specs for any file that has a matching test or spec file:
sb watch
Run any arbitrary command through starting blocks. The results of the statement (notably the success or failure determined by the exit code) will be published through your starting blocks plugins.
sb execute "git push heroku master"
Run multiple commands and plugings at once. This will run watch for your tests and publish the results to the blinky and growl plugins.
sb watch blinky growl
Turn your blinky light red/yellow/green based on the results of your test run:
gem install starting_blocks-blinky
sb blinky
Pop a growl message based on your test results:
gem install starting_blocks-growl
sb growl
Change your stopplicht based on your test results:
gem install starting_blocks-stopplicht
sb stopplicht
Run your Elixir tests with starting_blocks:
gem install starting_blocks-elixir
sb elixir
Run your RSpec tests with starting_blocks:
gem install starting_blocks-rspec
sb rspec
Install it yourself with:
$ gem install starting_blocks