0.0
No commit activity in last 3 years
No release in over 3 years
A musical formatter for RSpec.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.0

Runtime

 Project Readme

musical_spec

"A revelatory auditory experience!" - Anonymous

An RSpec 3 formatter that plays higher notes as tests pass and lower notes as tests fail. 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.