public
Description: This repo is no longer maintained, see the official repository by paytonrules.
Homepage: http://selenium-on-rails.openqa.org/
Clone URL: git://github.com/ryanb/selenium-on-rails.git
selenium-on-rails / Rakefile
100644 28 lines (23 sloc) 0.637 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'rake'
require 'rake/testtask'
require 'rdoc/rdoc'
 
desc 'Default: run unit tests.'
task :default => :test
 
desc 'Test the Selenium on Rails plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end
 
desc 'Generate documentation for the Selenium on Rails plugin.'
task :rdoc do
  rm_rf 'doc'
  RDoc::RDoc.new.document(%w(--line-numbers --inline-source --title SeleniumOnRails README CHANGELOG lib))
end
 
begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |t|
    t.test_files = FileList['test/*_test.rb']
  end
rescue LoadError #if rcov isn't available, ignore
end