Sha256: 9272ede95ffcc23a8d5199dadf9ddb55a743015089b801eb206b41afcede777f

Contents?: true

Size: 329 Bytes

Versions: 7

Compression:

Stored size: 329 Bytes

Contents

# -*- ruby -*-

# special thanks to Pat Eyler, Sean Carley, and Rob Sanheim
module Autotest::RedGreen
  BAR = "=" * 80

  Autotest.add_hook :ran_command do |at|
    if at.results.last =~ /^.* (\d+) failures, (\d+) errors$/
      code = ($1 != "0" or $2 != "0") ? 31 : 32
      puts "\e[#{code}m#{BAR}\e[0m\n\n"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ZenTest-3.7.0 lib/autotest/redgreen.rb
ZenTest-3.7.1 lib/autotest/redgreen.rb
ZenTest-3.7.2 lib/autotest/redgreen.rb
ZenTest-3.8.0 lib/autotest/redgreen.rb
ZenTest-3.9.0 lib/autotest/redgreen.rb
ZenTest-3.9.1 lib/autotest/redgreen.rb
ZenTest-3.9.2 lib/autotest/redgreen.rb