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.
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]
- Fork it ( https://github.com/y-yagi/minitest-sound/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Add test
- Support soundcloud api