Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Test notifier for minitest via libnotify.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 example.rb
Octocat-spinner-32 minitest-libnotify.gemspec
README.rdoc

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

Something went wrong with that request. Please try again.