Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Hear how well your test suite is doing

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Changelog.md
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 musical_spec.gemspec
README.md

musical_spec

An RSpec formatter that plays higher notes as tests pass and lower notes as tests fail. A revelatory auditory experience! It's a subclass of the progress formatter, so you still get your pretty dots.

Usage

This uses Bloopsaphone, which requires PortAudio:

brew install portaudio

In your Gemfile:

gem 'musical_spec'

Then run your specs like this:

$ rspec --format MusicalSpec::Formatter spec/

To always run your specs with MusicalSpec, add the option to your .rspec file:

--format MusicalSpec::Formatter

Caveats

Due to Bloopsaphone wackiness, this library has to sleep while the sounds are playing. This will probably slow your test suite down a LOT. Also, sometimes the sounds can't keep up with the test suite and some of the sounds don't play. The dots still show up though.

Something went wrong with that request. Please try again.