Find file
Fetching contributors…
Cannot retrieve contributors at this time
87 lines (66 sloc) 2.07 KB
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'selenium/rake/tasks'
require 'selenium-extjs'
desc 'Test Selenium-ExtJS.' do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
desc 'Console.'
task :shell do |t|
exec 'irb -r ./lib/selenium-extjs.rb'
end do |rc|
rc.port = 4444
rc.timeout_in_seconds = 3 * 60
rc.background = true
rc.wait_until_up_and_running = true
rc.jar_file = "server/selenium-server.jar"
rc.additional_args << "-singleWindow -browserSessionReuse"
end do |rc| = "localhost"
rc.port = 4444
rc.timeout_in_seconds = 3 * 60
spec = do |s| = "selenium-extjs"
s.version = SeleniumExtJs::VERSION = ""
s.version = "0.0.1" = "Ronald Andreu Kaiser" = ""
s.homepage = ""
s.platform = Gem::Platform::RUBY
s.summary = "A framework in Ruby to test your ExtJS applications with Selenium"
s.description = %q{Get ready to Selenium-test your ExtJS in a simpler language!
This Ruby DSL aims to ease testing your ExtJS applications.
Simple, near-to-JavaScript-naming will help your QA efforts.
We included a Selenium Server as a stand-alone bundled .jar. (v2.0 [a2], with Core v2.0 [a2]).
Start the Selenium Server:
rake selenium:rc:start
Run the first test:
cd test; RUBYOPT=-rubygems ruby combobox_test.rb
s.files = FileList["{lib}/**/*"].to_a
s.has_rdoc = false
s.extra_rdoc_files = ["README.rdoc"]
s.require_paths = ["lib"]
end spec do |pkg|
# pkg.need_tar = true
# pkg.need_zip = true
desc "Generate a gemspec file for GitHub"
task :gemspec do"#{}.gemspec", 'w') do |f|
f.write spec.to_ruby