Sha256: a78d097394548564c1365cf8f520446156af3d18b543c10dd41f39564d4025a7

Contents?: true

Size: 786 Bytes

Versions: 17

Compression:

Stored size: 786 Bytes

Contents

#!/usr/local/bin/ruby -ws
# 
# unit_diff - a ruby unit test filter by Ryan Davis <ryand-ruby@zenspider.com>
#
# usage:
#
#  test.rb | unit_diff [options]
#    options:
#    -b ignore whitespace differences
#    -c contextual diff
#    -h show usage
#    -k keep temp diff files around
#    -l prefix line numbers on the diffs
#    -u unified diff
#    -v display version

require 'unit_diff'
require 'zentest'

############################################################

if defined? $v then
  puts "#{File.basename $0} v. #{ZenTest::VERSION}"
  exit 0
end

if defined? $h then
  File.open($0) do |f|
    begin; end until f.readline =~ /usage:/
    f.readline
    while line = f.readline and line.sub!(/^# ?/, '')
      $stderr.puts line
    end
  end
  exit 0
end

UnitDiff.unit_diff

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
ryanbriones-ZenTest-3.11.1 bin/unit_diff
ZenTest-3.5.1 bin/unit_diff
ZenTest-3.5.2 bin/unit_diff
ZenTest-3.6.0 bin/unit_diff
ZenTest-3.6.1 bin/unit_diff
ZenTest-3.7.0 bin/unit_diff
ZenTest-3.7.1 bin/unit_diff
ZenTest-3.7.2 bin/unit_diff
ZenTest-3.8.0 bin/unit_diff
ZenTest-3.9.0 bin/unit_diff
ZenTest-3.9.1 bin/unit_diff
ZenTest-3.9.2 bin/unit_diff
ZenTest-3.9.3 bin/unit_diff
ZenTest-3.10.0 bin/unit_diff
ZenTest-3.11.0 bin/unit_diff
ZenTest-3.11.1 bin/unit_diff
ZenTest-4.0.0 bin/unit_diff