Sha256: bf78a2548f2d6c40771c7e118eead8e86bbc829558a37de35fc860aeb1bdd90c
Contents?: true
Size: 602 Bytes
Versions: 1
Compression:
Stored size: 602 Bytes
Contents
require 'test_notifier/runner/autotest' TestNotifier::TITLES.merge! :fail => "FAIL", :success => "Pass" TestNotifier::IMAGES[:success] = File.dirname(__FILE__) + "/../../images/pass.png" doom_hook = proc do |at| content = at.results.to_s rspec_matches = content.match(/(\d+) failures?/) failures = rspec_matches[0].to_i if failures > 0 count = [(9 + failures) / 10 * 10, 50].min TestNotifier::IMAGES[:fail] = File.dirname(__FILE__) + "/../../images/fail#{count}.png" end false end Autotest::HOOKS[:ran_command].unshift doom_hook
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
autotest-doom-0.0.1 | lib/autotest/doom.rb |