Sha256: 91271690cbb68a50dd7d18450a2b1538cf90dd4c821f15807156ba6e91b507c5
Contents?: true
Size: 1.77 KB
Versions: 1
Compression:
Stored size: 1.77 KB
Contents
%w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f } require File.dirname(__FILE__) + '/lib/watirloo' # Generate all the Rake tasks # Run 'rake -T' to see list of generated tasks (from gem root directory) $hoe = Hoe.new('watirloo', Watirloo::VERSION) do |p| p.developer('marekj', 'marekj.com@gmail.com') p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n") p.rubyforge_name = p.name # TODO this is default value p.extra_deps = [ ['watir','>= 1.6.2'], ] p.extra_dev_deps = [ ['newgem', ">= #{::Newgem::VERSION}"], ['test/spec', '>=0.9.0'] ] p.test_globs =['test/*_test.rb'] p.testlib = ['test/spec'] p.clean_globs |= %w[**/.DS_Store tmp *.log] path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}" p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc') p.rsync_args = '-av --delete --ignore-errors' end require 'newgem/tasks' # load /tasks/*.rake Dir['tasks/**/*.rake'].each { |t| load t } desc "run all tests on IE." task :test_ie do # all tests use attach method to a browser that exit on the desktop # open new ie browser Watir::Browser.default = 'ie' Watir::Browser.new Watirloo::BrowserHerd.target = :ie tests = Dir["test/*_test.rb"] tests.each do |t| require t end # at the end of test you will have one extra browser end desc "run all tests on Firefox (config per FireWatir gem)" task :test_ff do # all tests attach to an existing firefox browser # start browser with jssh option Watir::Browser.default='firefox' Watir::Browser.new tests = Dir["test/*_test.rb"] tests.each do |t| Watirloo::BrowserHerd.target = :firefox require t end # at the end of test you will have one extra browser end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marekj-watirloo-0.0.2 | Rakefile.rb |