Sha256: d500c3bf3a5dbde62b68de00251b5a19fe03d50bb021023dda04af8006bf1914

Contents?: true

Size: 1.09 KB

Versions: 8

Compression:

Stored size: 1.09 KB

Contents

require 'rubygems'
require 'bundler'
require 'rspec/core/rake_task'
require 'cucumber'
require 'cucumber/rake/task'

Bundler::GemHelper.install_tasks

RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.ruby_opts = "-I lib:spec"
  spec.pattern   = 'spec/**/*_spec.rb'
end
task :spec

namespace :features do
  Cucumber::Rake::Task.new(:watir, "Run features with Watir") do |t|
    t.profile = "watir"
  end
  
  Cucumber::Rake::Task.new(:selenium, "Run features with Selenium") do |t|
    t.profile = "selenium"
  end
  
  desc 'Run all features'
  task :all => [:watir, :selenium]
end

desc 'Run all specs and cukes'
task :test => ['spec', 'features:all']

task :lib do
  $LOAD_PATH.unshift(File.expand_path("lib", File.dirname(__FILE__)))
end

task :default => :spec


begin
  require 'yard'
  Rake::Task[:lib].invoke
  require "yard/handlers/page-object"
  YARD::Rake::YardocTask.new do |task|
    task.options = %w[--debug] # this is pretty slow, so nice with some output
  end
rescue LoadError
  task :yard do
    abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
  end
end


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
page-object-0.2 Rakefile
page-object-0.1.1 Rakefile
page-object-0.1 Rakefile
page-object-0.0.5 Rakefile
page-object-0.0.4 Rakefile
page-object-0.0.3 Rakefile
page-object-0.0.2 Rakefile
page-object-0.0.1 Rakefile