mediawiki-selenium 0.1.18pre1 → 0.1.18pre2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84f241a0f439cd39868bee710c212cb5a576041d
4
- data.tar.gz: a1ef6cc71d1232fa8af316873fc5ccd21866a65d
3
+ metadata.gz: 98bd2e9901cfaca0d6b4018e0d69982aaec3eb56
4
+ data.tar.gz: d1a63eb46f394ade0de4fbae1c2144b64bbd7189
5
5
  SHA512:
6
- metadata.gz: e530b8fdce20aadc4ea49da6b5cafc435b97dbbceb2a7c5600af38661d391b754471f6d4b5d6d73dd08255b6cdc403f3a4574d8f2b2a3b4aea9ce53ebc301990
7
- data.tar.gz: 2ae2fc043eef8f0110515422fe51815f7d3996c2a0e575e19a6fa501be2eba3ecd16a56a874f922de3d14a9a58a0057ba8b08ed988fae20b7a4b2cf8d0d1a5dd
6
+ metadata.gz: d79a3a34def7886d13d2e0634b4436b8024d3a261058cd01abf821cda60fdfa7cf6b2962e2e50c0e7ba4f8cb67a0ddfe8529eca77d578af3613d51945391a09f
7
+ data.tar.gz: 70eb3cf7bc92e80a048375c876c160b5f3184a115d7d8ad1025d24e129846b3d44acef8f6fe2d0b4948906d3fb936c819f31ea03c6c05de5ef39eb81269475be
@@ -115,3 +115,14 @@ def test_name(scenario)
115
115
  "#{scenario.scenario_outline.feature.name}: #{scenario.scenario_outline.name}: #{scenario.name}"
116
116
  end
117
117
  end
118
+
119
+ if ENV["HEADLESS"] == true
120
+ require "headless"
121
+ headless = Headless.new
122
+ headless.start
123
+ end
124
+
125
+ at_exit do
126
+ p headless
127
+ headless.destroy if headless
128
+ end
@@ -13,43 +13,8 @@ require "cucumber/formatter/junit"
13
13
 
14
14
  module Cucumber::Formatter
15
15
  class Sauce < Junit
16
-
17
- private
18
-
19
- def build_testcase(duration, status, exception = nil, suffix = "")
20
- @time += duration
21
- classname = @feature_name
22
- name = "#{@scenario}#{suffix}"
23
- pending = [:pending, :undefined].include?(status) && (!@options[:strict])
24
-
25
- @builder.testcase(:classname => classname, :name => name, :time => "%.6f" % duration) do
26
- if status == :skipped || pending
27
- @builder.skipped
28
- @skipped += 1
29
- elsif status != :passed
30
- @builder.failure(:message => "#{status.to_s} #{name}", :type => status.to_s) do
31
- @builder.cdata! @output
32
- @builder.cdata!(format_exception(exception)) if exception
33
- end
34
- @failures += 1
35
- elsif status == :passed
36
- @builder.passed(:message => "#{status.to_s} #{name}", :type => status.to_s) do
37
- @builder.cdata! @output
38
- @builder.cdata!("Sauce Labs job URL: http://saucelabs.com/jobs/#{$session_id}\n")
39
- end
40
- end
41
- @builder.tag!('system-out')
42
- @builder.tag!('system-err')
43
- end
44
- @tests += 1
45
- end
46
-
47
16
  def format_exception(exception)
48
- if $session_id
49
- sauce_job_page = "Sauce Labs job URL: http://saucelabs.com/jobs/#{$session_id}\n"
50
- else
51
- sauce_job_page = "Uh-oh. Could not find link to Sauce Labs job URL."
52
- end
17
+ sauce_job_page = "Sauce Labs job URL: http://saucelabs.com/jobs/#{$session_id}\n"
53
18
  ([sauce_job_page] + ["#{exception.message} (#{exception.class})"] + exception.backtrace).join("\n")
54
19
  end
55
20
  end
@@ -11,6 +11,6 @@ https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.
11
11
 
12
12
  module Mediawiki
13
13
  module Selenium
14
- VERSION = "0.1.18pre1"
14
+ VERSION = "0.1.18pre2"
15
15
  end
16
16
  end
@@ -17,11 +17,12 @@ makes it easy to update the shared code.}
17
17
  spec.files = `git ls-files`.split($/)
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_runtime_dependency "cucumber", '~> 0'
21
- spec.add_runtime_dependency "json", '~> 0'
22
- spec.add_runtime_dependency "net-http-persistent", '~> 0'
23
- spec.add_runtime_dependency "page-object", '~> 0'
24
- spec.add_runtime_dependency "rest-client", '~> 0'
25
- spec.add_runtime_dependency "rspec-expectations", '~> 0'
26
- spec.add_runtime_dependency "syntax", '~> 0'
20
+ spec.add_runtime_dependency "cucumber"
21
+ spec.add_runtime_dependency "json"
22
+ spec.add_runtime_dependency "headless"
23
+ spec.add_runtime_dependency "net-http-persistent"
24
+ spec.add_runtime_dependency "page-object"
25
+ spec.add_runtime_dependency "rest-client"
26
+ spec.add_runtime_dependency "rspec-expectations"
27
+ spec.add_runtime_dependency "syntax"
27
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediawiki-selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18pre1
4
+ version: 0.1.18pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko Filipin
@@ -14,98 +14,112 @@ dependencies:
14
14
  name: cucumber
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: headless
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: net-http-persistent
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
61
  version: '0'
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: page-object
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - "~>"
73
+ - - ">="
60
74
  - !ruby/object:Gem::Version
61
75
  version: '0'
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - "~>"
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rest-client
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - "~>"
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
89
  version: '0'
76
90
  type: :runtime
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - "~>"
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
96
  version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rspec-expectations
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - "~>"
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
103
  version: '0'
90
104
  type: :runtime
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - "~>"
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: syntax
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - "~>"
115
+ - - ">="
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - "~>"
122
+ - - ">="
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  description: |-