qat-cucumber 7.0.3 → 9.0.0

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
  SHA256:
3
- metadata.gz: 67139374f8bbe0d89a773371791ebb6a33ed8cd37da6ef93b92435ea49758424
4
- data.tar.gz: 28e5fb337b59eda8f6b9414b93a12f3cc47acb1ea15b800d11fb78ff7e1304ac
3
+ metadata.gz: 55d940ccb7a63d3bc0a97e714f9b0f3f893e18bcde0ef4941d0f45481aca107b
4
+ data.tar.gz: 8178dccbd1438153737ca363009c24049f5f1ef6140af90e901f85719387441e
5
5
  SHA512:
6
- metadata.gz: '048ca6237a83e00e8ca6b40a36668d256d054c95e4a9399d37da829da05d54e973edcbac82b5ca86f962319843aa8c1bfd005442122c73449ae68426476879a5'
7
- data.tar.gz: bb0b52ebfa6101d059dc55b2e1cdf1576131656ef7c5c7b8a08227933613f9123083d722bdc57ab0ebff3cc8af43123220bc7a364568495270c60d1e9e504e3f
6
+ metadata.gz: 3c2192cb9876d80a67304b71bb0f7fc0fbffadf93a523c6f5dcb9184f4d18a9b08a979d30982e2c306d18a2ae43de83b81bacab18ab354519323862c34ed067f
7
+ data.tar.gz: 6bf484246f4504c0283bea93a06b5f0755d2c87a93d0ece1197698f9a3d484a9f7dba767b5092ab6cfbf6854c17580dadcae2d08bf8ae1c0afe4e295d83abdc1
data/bin/qat CHANGED
File without changes
@@ -19,14 +19,25 @@ module QAT::CLI::Generator
19
19
  raise ArgumentError.new 'No project name given' unless name
20
20
  raise ArgumentError.new "The project '#{name}' already exists" if ::File.directory? name
21
21
 
22
- mkdir name, opts
23
- cp_r ::File.join(::File.dirname(__FILE__), '..', '..', 'project', '.'), name, opts
24
- cd name, opts do
25
- mkdir_p ::File.join('config', 'common'), opts
26
- mkdir_p 'lib', opts
27
- mkdir_p 'public', opts
22
+ if opts.present?
23
+ mkdir name, verbose: true
24
+ cp_r ::File.join(::File.dirname(__FILE__), '..', '..', 'project', '.'), name
25
+ cd name do
26
+ mkdir_p ::File.join('config', 'common'), verbose: true
27
+ mkdir_p 'lib', verbose: true
28
+ mkdir_p 'public', verbose: true
29
+ end
30
+ else
31
+ mkdir name
32
+ cp_r ::File.join(::File.dirname(__FILE__), '..', '..', 'project', '.'), name
33
+ cd name do
34
+ mkdir_p ::File.join('config', 'common')
35
+ mkdir_p 'lib'
36
+ mkdir_p 'public'
37
+ end
28
38
  end
29
39
 
40
+
30
41
  end
31
42
  end
32
43
  end
@@ -32,7 +32,7 @@ module QAT
32
32
  files = [File.join(configuration_directory, configuration.environment, 'logger.yml'),
33
33
  File.join(configuration_directory, 'common', 'logger.yml')]
34
34
 
35
- config = files.select { |file| File.exists?(file) }
35
+ config = files.select { |file| File.exist?(file) }
36
36
 
37
37
  config.first
38
38
  end
@@ -10,6 +10,6 @@ module QAT
10
10
  #@since 0.1.0
11
11
  module Cucumber
12
12
  # Represents QAT's version
13
- VERSION = '7.0.3'
13
+ VERSION = '9.0.0'
14
14
  end
15
15
  end
data/lib/qat/cucumber.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
+ require "active_support"
2
3
  require 'minitest'
3
4
  require 'cucumber'
4
5
  require_relative 'cucumber/version'
@@ -39,8 +39,7 @@ module QAT
39
39
  def on_test_step_started(event)
40
40
  return if @config.dry_run?
41
41
  test_step = event.test_step
42
- return if internal_hook?(test_step)
43
- return if support_hook?(test_step)
42
+ return unless features?(test_step)
44
43
  step_source = @ast_lookup.step_source(test_step).step
45
44
  print_assign_step test_step, step_source
46
45
  end
@@ -49,8 +48,7 @@ module QAT
49
48
  def on_test_step_finished(event)
50
49
  return if @config.dry_run?
51
50
  test_step, result = *event.attributes
52
- return if internal_hook?(test_step)
53
- return if support_hook?(test_step)
51
+ return unless features?(test_step)
54
52
  log.info "Step Done!"
55
53
  end
56
54
 
@@ -49,17 +49,10 @@ module QAT
49
49
  end
50
50
  end
51
51
 
52
- def internal_hook?(test_step)
53
- test_step.location.file.include?('lib/qat/cucumber/')
52
+ def features?(test_step)
53
+ test_step.location.file.include?('.feature')
54
54
  end
55
55
 
56
- def support_hook?(test_step)
57
- test_step.location.file.include?('features/support/hooks')
58
- end
59
-
60
-
61
-
62
-
63
56
  end
64
57
  end
65
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qat-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.3
4
+ version: 9.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - QAT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-23 00:00:00.000000000 Z
11
+ date: 2023-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -16,98 +16,98 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.0
19
+ version: '8.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
- version: 5.2.0
26
+ version: '8.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '13.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '7.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '7.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: nokogiri
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '1.15'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '1.15'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: qat-core
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '8.0'
75
+ version: '9.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '8.0'
82
+ version: '9.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: qat-devel
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '8.0'
89
+ version: '9.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '8.0'
96
+ version: '9.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: httparty
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.15'
103
+ version: '0.21'
104
104
  type: :development
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: '0.15'
110
+ version: '0.21'
111
111
  description: |2
112
112
  QAT is a Cucumber-based toolkit for automating tests, including a list fo modules for:
113
113
  - Time manipulation
@@ -170,11 +170,11 @@ files:
170
170
  - lib/qat/tasks/tags/test_ids/helpers.rb
171
171
  - lib/qat/tasks/tags/test_ids/report.rb
172
172
  - lib/qat/tasks/test.rb
173
- homepage: https://www.readinessit.com
173
+ homepage: https://www.ritain.io
174
174
  licenses:
175
175
  - GPL-3.0
176
176
  metadata:
177
- source_code_uri: https://github.com/readiness-it/qat-cucumber
177
+ source_code_uri: https://github.com/Ritain-io/qat-cucumber
178
178
  post_install_message:
179
179
  rdoc_options: []
180
180
  require_paths:
@@ -183,14 +183,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: '2.5'
186
+ version: '3.2'
187
187
  required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  requirements:
189
189
  - - ">="
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.0.8
193
+ rubygems_version: 3.3.26
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: QAT is a Cucumber-based toolkit for automating tests.