testrailtagging 0.3.8.1 → 0.3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9235343ec7a22e3da5bbc9d452477af5539b69f7
4
- data.tar.gz: 51bd53cecd9230e510ab06d8b501f0ef771c9191
3
+ metadata.gz: 4489d20a210e470948fd94d53f255aa1ce6465bc
4
+ data.tar.gz: a5a72c15c57261dc987b0fd25623731a3ad5d323
5
5
  SHA512:
6
- metadata.gz: 7e5ba4712e1f91a893ef54bd3e6fb25ff57ae5bad8e61d46a0edf5474e73f0bd338a38078b076412fac71c95f38e5cd41d0ffea356d7933ff2726d94b9bf9852
7
- data.tar.gz: dbf20b16017534da181206e773e4881fbbf6f2893743df3f9bc03352667aec9fa17f87263dc4daf15ab2b2fdf1c7317892bf7a4e5360d90597313f596ae11451
6
+ metadata.gz: 9615d755ccb9aee73aaf1d94e6511ee1066d19e0d0b1d9e9c2a2f348c479d4d4236c332d3e785b0b111d50088718b261b1d8e72e82c7395149d717ee21e12bd8
7
+ data.tar.gz: 47bc60753a07094ba1f766eaccfd4009791d6cf42bc4fdee53864f051ec6f0f781b27cd8618479bef83312f2100e5d68537c1eda3b4f2f62bfb760c1311d237d
@@ -245,7 +245,7 @@ module TestCaseModifications
245
245
  tc = test_cases.delete(id)
246
246
  if tc
247
247
  if file != tc.file
248
- puts "\r\nID: #{id} - #{tc.title[0,50]}#{(tc.title.length > 50) ? '...' : ''}}"
248
+ puts "\r\nID: #{id} - #{tc.title[0,50]}#{(tc.title.length > 50) ? '...' : ''}"
249
249
  puts " Old File: #{tc.file}"
250
250
  puts " New File: #{file}"
251
251
  tc.file = file
@@ -274,20 +274,26 @@ module TestCaseModifications
274
274
  # remaining testcases should be unautomated, ensure they are
275
275
  check_unautomated(test_cases, changed_cases)
276
276
 
277
- puts "\nTest Cases that will get modified" if changed_cases.count > 0
278
- trclient = TestRailOperations.get_test_rail_client
279
- changed_cases.each do |id_key, tc_val|
280
- puts "Test Case: id: #{id_key}, #{tc_val.file}" if tc_val.file
281
- url = "update_case/#{id_key}"
282
- data = { "custom_spec_location" => tc_val.file,
283
- "custom_automated" => tc_val.automated,
284
- "custom_run_once" => tc_val.run_once
285
- }
286
- unless dryrun
287
- trclient.send_post_retry(url, data)
277
+ # update testrail if needed
278
+ if changed_cases.count > 0
279
+ puts "\nTest Cases that will get modified"
280
+ trclient = TestRailOperations.get_test_rail_client
281
+ changed_cases.each do |id_key, tc_val|
282
+ puts "Test Case: id: #{id_key}, #{tc_val.file}" if tc_val.file
283
+ url = "update_case/#{id_key}"
284
+ data = { "custom_spec_location" => tc_val.file,
285
+ "custom_automated" => tc_val.automated,
286
+ "custom_run_once" => tc_val.run_once
287
+ }
288
+ unless dryrun
289
+ trclient.send_post_retry(url, data)
290
+ end
288
291
  end
292
+ else
293
+ puts "Nothing to update \\o/"
289
294
  end
290
- puts "Number of orphaned testcase IDs: #{orphaned_ids_count}"
295
+
296
+ puts "Number of orphaned testcase IDs: #{orphaned_ids_count}" unless orphaned_ids_count.zero?
291
297
  end
292
298
 
293
299
  # Inspects all request specs and checks if their associated testcase is marked as
data/lib/files/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Testrailtagging
2
- VERSION = "0.3.8.1"
2
+ VERSION = "0.3.8.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testrailtagging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8.1
4
+ version: 0.3.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Johnson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-09 00:00:00.000000000 Z
11
+ date: 2017-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler