-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
86 lines (66 loc) · 2.07 KB
/
Rakefile
File metadata and controls
86 lines (66 loc) · 2.07 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'selenium/rake/tasks'
$LOAD_PATH.unshift("lib")
require 'selenium-extjs'
desc 'Test Selenium-ExtJS.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Console.'
task :shell do |t|
exec 'irb -r ./lib/selenium-extjs.rb'
end
Selenium::Rake::RemoteControlStartTask.new 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
Selenium::Rake::RemoteControlStopTask.new do |rc|
rc.host = "localhost"
rc.port = 4444
rc.timeout_in_seconds = 3 * 60
end
spec = Gem::Specification.new do |s|
s.name = "selenium-extjs"
s.version = SeleniumExtJs::VERSION
s.email = "raios.catodicos@gmail.com"
s.version = "0.0.1"
s.author = "Ronald Andreu Kaiser"
s.email = "raios.catodicos@gmail.com"
s.homepage = "http://github.com/cathoderay/selenium-extjs"
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
Rake::GemPackageTask.new spec do |pkg|
# pkg.need_tar = true
# pkg.need_zip = true
end
desc "Generate a gemspec file for GitHub"
task :gemspec do
File.open("#{spec.name}.gemspec", 'w') do |f|
f.write spec.to_ruby
end
end