minitest-sound plays sound when test finished.
mpg123
minitest ~> 5.0
Add this line to your application's Gemfile:
gem 'minitest-sound'
And then execute:
$ bundle
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.
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]
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)