Sha256: 910664511b1435ca170faa7a68396717c9b27130459f6b9a54677dc3398e4065

Contents?: true

Size: 338 Bytes

Versions: 4

Compression:

Stored size: 338 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|
    at.results.gsub!(/^.* (\d+) failures, (\d+) errors$/) { |match|
      code = ($1 != "0" or $2 != "0") ? 31 : 32
      "\e[#{code}m#{BAR}\n#{match}\e[0m\n\n"
    }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ZenTest-3.4.0 lib/autotest/redgreen.rb
ZenTest-3.4.1 lib/autotest/redgreen.rb
ZenTest-3.4.2 lib/autotest/redgreen.rb
ZenTest-3.4.3 lib/autotest/redgreen.rb