Sha256: 35770b94d55a16d4644ee48be013dce168f0c588a532a86c316e9ffc1074ce55
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
END {$ff.close if $ff} # close ff at completion of the tests # libraries used by feature tests require 'firewatir' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'firewatir/testUnitAddons' require 'unittests/iostring' topdir = File.join(File.dirname(__FILE__), '..') Dir.chdir topdir do $all_tests = Dir["unittests/*_test.rb"] end $non_core_tests = [ ].collect {|x| "unittests/#{x}_test.rb"} $core_tests = $all_tests - $non_core_tests def start_ff_with_logger $ff = FireWatir::Firefox.new() # $ff.logger = Watir::WatirLogger.new( 'debug.txt', 4, 10000 ) #$ff.set_fast_speed end def set_local_dir $myDir = File.expand_path(File.dirname(__FILE__)) $myDir.sub!( %r{/cygdrive/(\w)/}, '\1:/' ) # convert from cygwin to dos # if you run the unit tests form a local file system use this line $htmlRoot = "file://#{$myDir}/html/" # if you run the unit tests from a web server use this line # $htmlRoot = "http://localhost:8080/watir/html/" end start_ff_with_logger set_local_dir
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
firewatir-1.2.1 | unittests/setup.rb |
firewatir-1.2.0 | unittests/setup.rb |