Sha256: 094335fd49687b1e04653b38e3858751938c8657b9a82e7ba298b1cebfe8a71e

Contents?: true

Size: 734 Bytes

Versions: 8

Compression:

Stored size: 734 Bytes

Contents

#!/usr/bin/env ruby -w

require File.expand_path(File.join(File.dirname(__FILE__), "image_assertion"))

SUCCESS_EXIT_STATUS = 0
FAILED_EXIT_STATUS  = 1

test_output     = ARGV[0]
ref_images_path = ARGV[1]
image_name      = ARGV[2]
threshold       = ARGV[3]

unless (test_output && ref_images_path && image_name)

  $stderr.puts('incorrect arguments')
  exit FAILED_EXIT_STATUS
end

assertion_result = ImageAssertion.assert_image(File.expand_path(test_output),
                                               File.expand_path(ref_images_path),
                                               image_name,
                                               threshold)
exit FAILED_EXIT_STATUS unless assertion_result

exit SUCCESS_EXIT_STATUS

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
smart_monkey-0.5.0 lib/ui-auto-monkey/tuneup/image_asserter
smart_monkey-0.4.2 lib/ui-auto-monkey/tuneup/image_asserter
smart_monkey-0.4.1 lib/ui-auto-monkey/tuneup/image_asserter
smart_monkey-0.3 lib/ui-auto-monkey/tuneup/image_asserter
smart_monkey-0.2.1 lib/ui-auto-monkey/tuneup/image_asserter
smart_monkey-0.2 lib/ui-auto-monkey/tuneup/image_asserter
smart_monkey-0.1.2 lib/ui-auto-monkey/tuneup/image_asserter
smart_monkey-0.1 lib/ui-auto-monkey/tuneup/image_asserter