quintocumber 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/env.rb +8 -1
- data/lib/plugins/publish_reports.rb +1 -1
- data/lib/plugins/screeshot_hooks.rb +2 -2
- data/lib/quintocumber.rb +3 -27
- data/lib/quintocumber/version.rb +1 -1
- data/quintocumber.gemspec +3 -3
- metadata +7 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ee85489e5b0c8ad70bfccd0e8af8c571a3b7fe8cbe61dc242aa818671251804c
|
4
|
+
data.tar.gz: 99678e82a78f8620da37bda102142223a53670862b260d814e8b48ed2161666b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c23cd8ea4e1d74c2ba0a3850eb420fcd0d3f6d39ec604c9720e3cb39dfedf62ec1c895e64812495dff925f440a9024d49d3499d776ac132f480174e40ede900f
|
7
|
+
data.tar.gz: 8794f0ad802a99e63243cd6f6f167362b1cfd73d7e6ef7f0dddc85c5a310e6ee2532080e8347eadc81228f3a21fb788130b0c8529069c5f72243a8ee7bf1b793
|
data/lib/env.rb
CHANGED
@@ -7,7 +7,6 @@ require 'capybara/cucumber'
|
|
7
7
|
require 'site_prism'
|
8
8
|
require 'allure-cucumber'
|
9
9
|
require 'rspec/expectations'
|
10
|
-
require 'factory_girl'
|
11
10
|
|
12
11
|
Capybara.default_max_wait_time = 10
|
13
12
|
Capybara.save_path = 'screenshots/'
|
@@ -17,3 +16,11 @@ After do |_scenario|
|
|
17
16
|
end
|
18
17
|
|
19
18
|
Capybara.default_driver = :wip
|
19
|
+
|
20
|
+
Cucumber::Core::Test::Step.module_eval do
|
21
|
+
def name
|
22
|
+
return text if self.text == 'Before hook'
|
23
|
+
return text if self.text == 'After hook'
|
24
|
+
"#{source.last.keyword}#{text}"
|
25
|
+
end
|
26
|
+
end
|
@@ -20,7 +20,7 @@ def pagerduty_payload(failed_length, reports_list_str)
|
|
20
20
|
end
|
21
21
|
|
22
22
|
AfterConfiguration do |config|
|
23
|
-
config.on_event :
|
23
|
+
config.on_event :test_case_finished do |event|
|
24
24
|
tests_failed.push(event.test_case.name) unless event.result.ok?
|
25
25
|
end
|
26
26
|
end
|
@@ -6,9 +6,9 @@ class AllureCucumberDSLTemp
|
|
6
6
|
end
|
7
7
|
|
8
8
|
AfterConfiguration do |config|
|
9
|
-
config.on_event :
|
9
|
+
config.on_event :test_step_finished do |event|
|
10
10
|
if !ENV['DISABLE_REPORTS_SCREENSHOT'] && !event.result.ok?
|
11
|
-
filename = "#{event.
|
11
|
+
filename = "#{event.test_step.location.to_s}.png"
|
12
12
|
Capybara.page.save_screenshot(filename)
|
13
13
|
AllureCucumberDSLTemp.attach_file(
|
14
14
|
filename,
|
data/lib/quintocumber.rb
CHANGED
@@ -21,33 +21,9 @@ module Quintocumber
|
|
21
21
|
end
|
22
22
|
loader_file = File.join(File.dirname(__FILE__), '/loader.rb')
|
23
23
|
args = default_args(loader_file) + @args
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
retry_attempts = 0
|
28
|
-
retry_attempts_idx = args.index("--retry")
|
29
|
-
if retry_attempts_idx
|
30
|
-
args.slice(retry_attempts_idx)
|
31
|
-
retry_attempts = args.slice(retry_attempts_idx + 1)
|
32
|
-
puts retry_attempts
|
33
|
-
end
|
34
|
-
|
35
|
-
begin
|
36
|
-
Cucumber::Cli::Main.new(args, nil, @out, @err, @kernel).execute!
|
37
|
-
rescue SystemExit
|
38
|
-
i = 0
|
39
|
-
while i < retry_attempts.to_i
|
40
|
-
# TODO: Extract and improve this block
|
41
|
-
puts "Retry ##{i+1}"
|
42
|
-
args_to_retry = args.clone
|
43
|
-
args_to_retry + File.readlines("failed.txt")
|
44
|
-
begin
|
45
|
-
Cucumber::Cli::Main.new(args_to_retry, nil, @out, @err, @kernel).execute!
|
46
|
-
rescue SystemExit
|
47
|
-
i = i + 1
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
24
|
+
|
25
|
+
runtime = Cucumber::Runtime.new
|
26
|
+
Cucumber::Cli::Main.new(args, nil, @out, @err, @kernel).execute!(runtime)
|
51
27
|
end
|
52
28
|
|
53
29
|
def default_args(loader_file)
|
data/lib/quintocumber/version.rb
CHANGED
data/quintocumber.gemspec
CHANGED
@@ -33,13 +33,13 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency 'webmock', '~> 3.0.1'
|
34
34
|
spec.add_development_dependency 'rubocop', '~> 0.49.1'
|
35
35
|
|
36
|
-
spec.add_dependency 'cucumber', '~>
|
36
|
+
spec.add_dependency 'cucumber', '~> 3.0'
|
37
37
|
spec.add_dependency 'rspec', '~> 3.6'
|
38
38
|
spec.add_dependency 'site_prism', '~> 2.9'
|
39
39
|
spec.add_dependency 'capybara', '~> 2.14'
|
40
40
|
spec.add_dependency 'selenium-webdriver', '~> 3.13.0'
|
41
|
-
spec.add_dependency 'allure-cucumber', '~> 0.
|
42
|
-
|
41
|
+
spec.add_dependency 'allure-cucumber', '~> 0.6.1'
|
42
|
+
|
43
43
|
spec.add_dependency 'faker', '~> 1.8'
|
44
44
|
spec.add_dependency 'httparty', '~> 0.15'
|
45
45
|
spec.add_dependency 'aws-sdk', '~> 2.10'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quintocumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego Queiroz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '3.0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '3.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,28 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 0.6.1
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: factory_girl
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '4.8'
|
188
|
-
type: :runtime
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "~>"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '4.8'
|
180
|
+
version: 0.6.1
|
195
181
|
- !ruby/object:Gem::Dependency
|
196
182
|
name: faker
|
197
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -288,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
274
|
version: '0'
|
289
275
|
requirements: []
|
290
276
|
rubyforge_project:
|
291
|
-
rubygems_version: 2.
|
277
|
+
rubygems_version: 2.7.7
|
292
278
|
signing_key:
|
293
279
|
specification_version: 4
|
294
280
|
summary: Cucumber on steroids
|