Skip to content

Run your minitest tests & specs immediately, with no setup or project edits.

License

Notifications You must be signed in to change notification settings

darrencauthon/starting_blocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starting Blocks

Why?

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.

What tests, though?

Starting Blocks runs all files that have a "test" or "spec" prefix or suffix. Like:

  • spec_apple.rb
  • apple_spec.rb
  • test_orange.rb
  • orange_test.rb

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.

Usage

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

Plugins

Blinky Light

Turn your blinky light red/yellow/green based on the results of your test run:

gem install starting_blocks-blinky
sb blinky

Growl

Pop a growl message based on your test results:

gem install starting_blocks-growl
sb growl

Stopplicht

Change your stopplicht based on your test results:

gem install starting_blocks-stopplicht
sb stopplicht

Elixir

Run your Elixir tests with starting_blocks:

gem install starting_blocks-elixir
sb elixir

RSpec

Run your RSpec tests with starting_blocks:

gem install starting_blocks-rspec
sb rspec

Installation

Install it yourself with:

$ gem install starting_blocks

About

Run your minitest tests & specs immediately, with no setup or project edits.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages