0.0
No commit activity in last 3 years
No release in over 3 years
Play a sound when test finished
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Dependencies

Development

Runtime

>= 5.0
 Project Readme

Minitest::Sound

Build Status Gem Version Code Climate

minitest-sound plays sound when test finished.

Requirements

Installation

Add this line to your application's Gemfile:

gem 'minitest-sound'

And then execute:

$ bundle

Usage

require 'minitest/sound'

Minitest::Sound.success = '/aaa/bbb/xxx.mp3' # Sound file which does play when a test succeeded.
Minitest::Sound.failure = '/aaa/bbb/xxx.mp3' # Sound file which does play when a test failed.
Minitest::Sound.during_test = '/aaa/bbb/xxx.mp3' # Sound file which does play during test.

When use with minitest-reporters

When use it with minitest-reporters, it is necessary to set Minitest::Sound::Reporter in Minitest::Reporters.use!

Example:

require 'minitest/sound/reporter'


Minitest::Sound.success = '/aaa/bbb/xxx.mp3'
Minitest::Sound.failure = '/aaa/bbb/xxx.mp3'
Minitest::Sound.during_test = '/aaa/bbb/xxx.mp3'

Minitest::Reporters.use! [Minitest::Reporters::SpecReporter.new, Minitest::Sound::Reporter.new]

Contributing

  1. Fork it ( https://github.com/y-yagi/minitest-sound/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

TODO

  • Add test
  • Support soundcloud api