qat-cucumber 7.0.3 → 7.0.4

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: 52049a50f92285548892ab45b105aeda40630d3cb8051adfe644700b0e92189c
4
+ data.tar.gz: d0bc611a1eb4ddd61ee3510371421488776db8e6f0bccede00d123e55634d87a
5
5
  SHA512:
6
- metadata.gz: '048ca6237a83e00e8ca6b40a36668d256d054c95e4a9399d37da829da05d54e973edcbac82b5ca86f962319843aa8c1bfd005442122c73449ae68426476879a5'
7
- data.tar.gz: bb0b52ebfa6101d059dc55b2e1cdf1576131656ef7c5c7b8a08227933613f9123083d722bdc57ab0ebff3cc8af43123220bc7a364568495270c60d1e9e504e3f
6
+ metadata.gz: 1b1f39bceb8c052f341eb38cc55caaa9759516d89eb656eb1c7ed38b66f4a7da7c22a696b62b6b16267d88cb72b904c291cf5f89f8dea35de057049db42f4303
7
+ data.tar.gz: 21871419441011ffc39378b804d4b4d6281c709b5e8a4225eadac053ddf69b232a117fa12c1fa90efbad2e52788fbeef62a475a849df2777cd66d0a3b1c3a485
@@ -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 = '7.0.4'
14
14
  end
15
15
  end
@@ -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: 7.0.4
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: 2021-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber