itriagetestrail 1.0.17 → 1.0.18

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: cc47a201c4d04fa3b717cecf4d23c7df4a1ee355
4
- data.tar.gz: d29e9dde8c13e406fc83dadcd045572a54dfdc2b
3
+ metadata.gz: fef11d9692639b82030485fef2c5f9a5184e9bbc
4
+ data.tar.gz: 9364b9592f576a7ed935c5ae2eb478d5f68afb98
5
5
  SHA512:
6
- metadata.gz: 73a9c8da9a0feb95009201bd95a2f7ffdc3ca4c0d72e0c09b2e3823830cd23171c64fc47a966c0d0a7e09d5ea66800b3a26b063d9da0e43bedf8f2d2d42307d3
7
- data.tar.gz: 94a357f9f699fa699fb7f5e8c2e884ba9b84bc30486f4dbedc8d9e4996207c30eca0d5265a2ed9fbbd51da7b1db64edaf4545e74d7319a7f020d2ed1746dd9f8
6
+ metadata.gz: bf7bc5ff2a2cdd9a3460ebf2b915229fe62f98971bf35b1c201369384781acc5fd75e5bf6b70df4925c192ff4e618b0e5e02955ec459d9571d3d8dd2135bd8c4
7
+ data.tar.gz: 2cd790d120d2f4f47905d044fa91238a9096f8229d5358c436de594f7de1bcb99e088c20566bbeacfaf6806c98ce75d0fd029dc538933f11363f4b013a639cee
@@ -51,7 +51,6 @@ module Itriagetestrail
51
51
  # Pull Tag IDs
52
52
  unless @scenario_tags.nil?
53
53
 
54
- # TODO: Determine how to approach updating tags without permanently storing results on broken tests?
55
54
  # https://github.com/cucumber/cucumber-ruby/blob/master/lib/cucumber/runtime.rb
56
55
  # Test has to actually run in order to populate testrail.
57
56
 
@@ -67,13 +66,16 @@ module Itriagetestrail
67
66
  end
68
67
  end
69
68
 
70
- # TODO: Determine if there is a change, if so then we send a post
71
- testrail_case_tag_ids = @test_cases.select { |item| item['id'] == case_id }[0]['custom_tags']
69
+ current_case = @test_cases.select { |item| item['id'] == case_id }[0]
72
70
 
73
- unless testrail_case_tag_ids == scenario_tag_ids
74
- # Now that we have the case id, lets update tags
75
- @client.send_post("update_case/#{case_id}", { 'custom_tags': scenario_tag_ids})
71
+ testrail_case_tag_ids = current_case['custom_tags']
72
+ testrail_case_steps = current_case['custom_steps']
73
+
74
+ if testrail_case_tag_ids == scenario_tag_ids || testrail_case_steps == @scenario_steps
75
+ @client.send_post("update_case/#{case_id}", { 'custom_tags': scenario_tag_ids, 'custom_steps': @scenario_steps})
76
76
  end
77
+
78
+ # Now that we have the case id, lets update tags
77
79
  end
78
80
 
79
81
  # Update Test Run
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '1.0.17'.freeze
2
+ VERSION = '1.0.18'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itriagetestrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-01 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo