itriagetestrail 0.3.8 → 0.3.9

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: 4ac72ea294fc337baf6e153ec9d3d5552d0a1c12
4
- data.tar.gz: 21735f722c745d91333f92537882731e1903fbc3
3
+ metadata.gz: 746dccc6b0b7e8cb59226fcbe166e1890b8da140
4
+ data.tar.gz: d3bad34cf00f612f12bf39f03d1f146f7d6a2070
5
5
  SHA512:
6
- metadata.gz: 46a24c9600bb51e73d9ad91dab1adcc7a5a4fc9c495469696b0c8f84ea9dccaad18a503504a51259d61009f65c8c0398eb457e1d27c520f5929e88c902d8b55f
7
- data.tar.gz: b87fe1b01c489d9358b140c247df4c1e4a625f0b811d5146a7fea79858cb23c148b1d7e9da7f9b4dbba35267b29f853f75db073b9407a309fed03ccdcbd92f6f
6
+ metadata.gz: 334592ce2d16d98082c6c9f8d40fc8337b76386bf417002e12d99314b2f8b256e5b633f3eb68aef96108b17cadbca74bc68633c5cd28c2cd351c6556129ade03
7
+ data.tar.gz: de7a0fa19f48c33ea9d1b883cb3a1e5e6003e45e663410434126e4e2c51d1cda49315fba0219fafa3ff5003da688c6ff2ec3544e16b5d562d28b9a417e3aa153
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '0.3.8'
2
+ VERSION = '0.3.9'
3
3
  end
@@ -303,8 +303,6 @@ module Itriagetestrail
303
303
  end
304
304
 
305
305
  def extend_testrail_run
306
- # Get a list of test cases from prior runs
307
- @existing_cases = File.read('./tmp/testrail_ids')
308
306
 
309
307
  # Reset test scope to include all cases
310
308
  body = { include_all: true }
@@ -312,7 +310,8 @@ module Itriagetestrail
312
310
  end
313
311
 
314
312
  def existing_cases
315
- @existing_cases.split(',')
313
+ # Read only means to get a list of test cases from prior runs
314
+ File.read('./tmp/testrail_ids').split(',')
316
315
  end
317
316
 
318
317
  # open a test run to submit test results
@@ -389,7 +388,14 @@ module Itriagetestrail
389
388
  end
390
389
 
391
390
  def store_case_ids(list)
392
- File.open('./tmp/testrail_ids', 'a') { |file| file.print list.join(',') }
391
+ new_list = []
392
+ list.each { |item| new_list << item }
393
+
394
+ f = File.open('./tmp/testrail_ids', 'r+')
395
+ f.read.split(',').each{ |item| new_list << item.to_i}
396
+ f.rewind
397
+ f.write new_list.join(',')
398
+ f.close
393
399
  end
394
400
 
395
401
  # this is the hack at very end to exclude tests which frameworks like MiniTest and Cucumber did not touch
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itriagetestrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069