No commit activity in last 3 years
No release in over 3 years
Display graphical notfications when testing with minitest.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

minitest-libnotify¶ ↑

Test notifier for minitest via libnotify.

Source | RDoc

Usage¶ ↑

require 'minitest/autorun'
require 'minitest/libnotify'

Installation¶ ↑

gem install minitest-libnotify

Config¶ ↑

Tweaking¶ ↑

require 'minitest/autorun'
require 'minitest/libnotify'

reporter = MiniTest::Unit.output
reporter.config[:global][:description]  = "TESTS"
reporter.config[:pass][:description]    = proc { |desc| "#{desc} :)" }
reporter.config[:fail][:description]    = proc { |desc| "#{desc} :(" }
reporter.config[:fail][:icon_path]      = "face-crying.*"

Default config¶ ↑

reporter.default_config = {
  :global => {
    :timeout      => 2.5,
    :append       => false,
    :description  => proc { [ defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby", RUBY_VERSION, RUBY_PLATFORM ].join(" ") },
  },
  :pass => {
    :description  => proc { |description| ":-) #{description}" },
    :urgency      => :critical,
    :icon_path    => "face-laugh.*"
  },
  :fail => {
    :description  => proc { |description| ":-( #{description}" },
    :urgency    => :critical,
    :icon_path  => "face-angry.*"
  }
}

Authors¶ ↑

License¶ ↑

MIT License

TODO¶ ↑

  • Write tests