saucelabs-adapter 0.8.12 → 0.8.16
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/generators/saucelabs_adapter/templates/selenium.yml +1 -1
- data/lib/saucelabs_adapter.rb +2 -1
- data/lib/saucelabs_adapter/rspec_adapter.rb +25 -0
- metadata +25 -43
data/Rakefile
CHANGED
@@ -39,6 +39,7 @@ begin
|
|
39
39
|
"lib/saucelabs_adapter/tunnels/other_tunnel.rb",
|
40
40
|
"lib/saucelabs_adapter/selenium_config.rb",
|
41
41
|
"lib/saucelabs_adapter/test_unit_adapter.rb",
|
42
|
+
"lib/saucelabs_adapter/rspec_adapter.rb",
|
42
43
|
"lib/saucelabs_adapter/jsunit_selenium_support.rb",
|
43
44
|
"lib/saucerest-ruby/saucerest.rb",
|
44
45
|
"lib/saucerest-ruby/gateway.rb",
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.16
|
@@ -48,7 +48,7 @@ saucelabs: &saucelabs
|
|
48
48
|
# tunnel_to_localhost_port: 4000 # Warning: application_port and tunnel_to_localhost_port must be identical if you are using Webrat
|
49
49
|
# tunnel_startup_timeout: 240
|
50
50
|
#
|
51
|
-
# tunnel_method: :sshtunnel
|
51
|
+
# tunnel_method: :sshtunnel # WARNING: if other projects use the same port on the same machine at the same time, you can get intermittent errors.
|
52
52
|
# application_address: proxy.mycompany.com
|
53
53
|
# application_port: 12345 # or can be a range XXXX-YYYY
|
54
54
|
# tunnel_to_localhost_port: 4000 # Warning: application_port and tunnel_to_localhost_port must be identical if you are using Webrat
|
data/lib/saucelabs_adapter.rb
CHANGED
@@ -5,6 +5,7 @@ require 'saucelabs_adapter/tunnels/ssh_tunnel'
|
|
5
5
|
require 'saucelabs_adapter/tunnels/other_tunnel'
|
6
6
|
require 'saucelabs_adapter/selenium_config'
|
7
7
|
require 'saucelabs_adapter/test_unit_adapter'
|
8
|
+
require 'saucelabs_adapter/rspec_adapter'
|
8
9
|
require 'saucelabs_adapter/jsunit_selenium_support'
|
9
10
|
module SaucelabsAdapter
|
10
|
-
end
|
11
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
if defined?(Spec::Runner)
|
2
|
+
|
3
|
+
module Spec
|
4
|
+
module Runner
|
5
|
+
class Configuration
|
6
|
+
attr_accessor :saucelabs_tunnel
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
Spec::Runner.configure do |config|
|
11
|
+
config.before :all do
|
12
|
+
selenium_config = SaucelabsAdapter::SeleniumConfig.new(ENV['SELENIUM_ENV'])
|
13
|
+
if selenium_config.start_tunnel? and config.saucelabs_tunnel.nil?
|
14
|
+
config.saucelabs_tunnel = SaucelabsAdapter::Tunnel.factory(selenium_config)
|
15
|
+
config.saucelabs_tunnel.start_tunnel
|
16
|
+
end
|
17
|
+
webrat_config = Webrat.configuration
|
18
|
+
selenium_config.configure_webrat(webrat_config)
|
19
|
+
end
|
20
|
+
|
21
|
+
at_exit do
|
22
|
+
config.saucelabs_tunnel.shutdown if config.saucelabs_tunnel
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saucelabs-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 39
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.8.
|
8
|
+
- 16
|
9
|
+
version: 0.8.16
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Kelly Felkins, Chad Woolley, Sam Pierson, Nate Clark
|
@@ -15,89 +14,79 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-07-13 00:00:00 -07:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
|
21
|
+
name: rest-client
|
22
|
+
type: :runtime
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
hash: 31
|
28
27
|
segments:
|
29
28
|
- 1
|
30
29
|
- 2
|
31
30
|
- 0
|
32
31
|
version: 1.2.0
|
33
|
-
type: :runtime
|
34
|
-
name: rest-client
|
35
|
-
version_requirements: *id001
|
36
32
|
prerelease: false
|
33
|
+
requirement: *id001
|
37
34
|
- !ruby/object:Gem::Dependency
|
38
|
-
|
39
|
-
|
35
|
+
name: net-ssh
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
38
|
requirements:
|
41
39
|
- - ">="
|
42
40
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 23
|
44
41
|
segments:
|
45
42
|
- 2
|
46
43
|
- 0
|
47
44
|
- 12
|
48
45
|
version: 2.0.12
|
49
|
-
type: :runtime
|
50
|
-
name: net-ssh
|
51
|
-
version_requirements: *id002
|
52
46
|
prerelease: false
|
47
|
+
requirement: *id002
|
53
48
|
- !ruby/object:Gem::Dependency
|
54
|
-
|
55
|
-
|
49
|
+
name: net-ssh-gateway
|
50
|
+
type: :runtime
|
51
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
52
|
requirements:
|
57
53
|
- - ">="
|
58
54
|
- !ruby/object:Gem::Version
|
59
|
-
hash: 21
|
60
55
|
segments:
|
61
56
|
- 1
|
62
57
|
- 0
|
63
58
|
- 1
|
64
59
|
version: 1.0.1
|
65
|
-
type: :runtime
|
66
|
-
name: net-ssh-gateway
|
67
|
-
version_requirements: *id003
|
68
60
|
prerelease: false
|
61
|
+
requirement: *id003
|
69
62
|
- !ruby/object:Gem::Dependency
|
70
|
-
|
71
|
-
|
63
|
+
name: selenium-client
|
64
|
+
type: :runtime
|
65
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
72
66
|
requirements:
|
73
67
|
- - ">="
|
74
68
|
- !ruby/object:Gem::Version
|
75
|
-
hash: 61
|
76
69
|
segments:
|
77
70
|
- 1
|
78
71
|
- 2
|
79
72
|
- 17
|
80
73
|
version: 1.2.17
|
81
|
-
type: :runtime
|
82
|
-
name: selenium-client
|
83
|
-
version_requirements: *id004
|
84
74
|
prerelease: false
|
75
|
+
requirement: *id004
|
85
76
|
- !ruby/object:Gem::Dependency
|
86
|
-
|
87
|
-
|
77
|
+
name: lsof
|
78
|
+
type: :runtime
|
79
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
88
80
|
requirements:
|
89
81
|
- - ">="
|
90
82
|
- !ruby/object:Gem::Version
|
91
|
-
hash: 19
|
92
83
|
segments:
|
93
84
|
- 0
|
94
85
|
- 3
|
95
86
|
- 0
|
96
87
|
version: 0.3.0
|
97
|
-
type: :runtime
|
98
|
-
name: lsof
|
99
|
-
version_requirements: *id005
|
100
88
|
prerelease: false
|
89
|
+
requirement: *id005
|
101
90
|
description: "This gem augments Test::Unit and Polonium/Webrat to run Selenium tests in the cloud. "
|
102
91
|
email: pair+kelly+sam@pivotallabs.com
|
103
92
|
executables: []
|
@@ -121,6 +110,7 @@ files:
|
|
121
110
|
- lib/saucelabs-adapter.rb
|
122
111
|
- lib/saucelabs_adapter.rb
|
123
112
|
- lib/saucelabs_adapter/jsunit_selenium_support.rb
|
113
|
+
- lib/saucelabs_adapter/rspec_adapter.rb
|
124
114
|
- lib/saucelabs_adapter/run_utils.rb
|
125
115
|
- lib/saucelabs_adapter/selenium_config.rb
|
126
116
|
- lib/saucelabs_adapter/test_unit_adapter.rb
|
@@ -132,10 +122,6 @@ files:
|
|
132
122
|
- lib/saucerest-ruby/gateway.rb
|
133
123
|
- lib/saucerest-ruby/saucerest.rb
|
134
124
|
- README.markdown
|
135
|
-
- spec/selenium_config_spec.rb
|
136
|
-
- spec/spec_helper.rb
|
137
|
-
- test/helper.rb
|
138
|
-
- test/test_saucelabs-adapter.rb
|
139
125
|
has_rdoc: true
|
140
126
|
homepage: http://github.com/pivotal/saucelabs-adapter
|
141
127
|
licenses: []
|
@@ -146,27 +132,23 @@ rdoc_options:
|
|
146
132
|
require_paths:
|
147
133
|
- lib
|
148
134
|
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
-
none: false
|
150
135
|
requirements:
|
151
136
|
- - ">="
|
152
137
|
- !ruby/object:Gem::Version
|
153
|
-
hash: 3
|
154
138
|
segments:
|
155
139
|
- 0
|
156
140
|
version: "0"
|
157
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
|
-
none: false
|
159
142
|
requirements:
|
160
143
|
- - ">="
|
161
144
|
- !ruby/object:Gem::Version
|
162
|
-
hash: 3
|
163
145
|
segments:
|
164
146
|
- 0
|
165
147
|
version: "0"
|
166
148
|
requirements: []
|
167
149
|
|
168
150
|
rubyforge_project:
|
169
|
-
rubygems_version: 1.3.
|
151
|
+
rubygems_version: 1.3.6
|
170
152
|
signing_key:
|
171
153
|
specification_version: 3
|
172
154
|
summary: Adapter for running Selenium tests using SauceLabs.com
|