itriagetestrail 0.3.7 → 0.3.8

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: 54047ca763dcc4840c06e0e6311c98ab8893be3e
4
- data.tar.gz: 2ead1b1c1f17b53fb2a9cf339b205a04dbb8c526
3
+ metadata.gz: 4ac72ea294fc337baf6e153ec9d3d5552d0a1c12
4
+ data.tar.gz: 21735f722c745d91333f92537882731e1903fbc3
5
5
  SHA512:
6
- metadata.gz: a3210afa917b7c8e9815d0b496e41bece370138b04078fc2ee909d7bb18e5b84d348b2dbadd9a61e74a6bd6f9e2dec0cbd7901a4762a146ff4624c604c5bbe93
7
- data.tar.gz: cd87e2e9b67fa081ae6f19863f8bb86959da39efd04520738798e402de3d39ba3bea86a985feb08a45ab1793538739426c532adf3ef7f4bb59a2ebfb69ff1a40
6
+ metadata.gz: 46a24c9600bb51e73d9ad91dab1adcc7a5a4fc9c495469696b0c8f84ea9dccaad18a503504a51259d61009f65c8c0398eb457e1d27c520f5929e88c902d8b55f
7
+ data.tar.gz: b87fe1b01c489d9358b140c247df4c1e4a625f0b811d5146a7fea79858cb23c148b1d7e9da7f9b4dbba35267b29f853f75db073b9407a309fed03ccdcbd92f6f
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '0.3.7'
2
+ VERSION = '0.3.8'
3
3
  end
@@ -19,7 +19,13 @@ module Itriagetestrail
19
19
  def initialize(testrail_config)
20
20
  @setup = false
21
21
  @testrail_config = testrail_config
22
- @run_id = @testrail_config[:run_id] || 0
22
+
23
+ if File.exist?('./tmp/testrail_id')
24
+ @run_id = File.read('./tmp/testrail_id')
25
+ else
26
+ @run_id = 0
27
+ end
28
+
23
29
  @milestone_name = normalize_milestone
24
30
  @jenkins_build = @testrail_config[:jenkinsBuild]
25
31
  @app_version = @testrail_config[:appVersion]
@@ -383,7 +389,7 @@ module Itriagetestrail
383
389
  end
384
390
 
385
391
  def store_case_ids(list)
386
- File.open('./tmp/testrail_ids', 'a') { |file| file.print list }
392
+ File.open('./tmp/testrail_ids', 'a') { |file| file.print list.join(',') }
387
393
  end
388
394
 
389
395
  # this is the hack at very end to exclude tests which frameworks like MiniTest and Cucumber did not touch
@@ -414,6 +420,8 @@ module Itriagetestrail
414
420
 
415
421
  def close_run
416
422
  @client.send_post("close_run/#{@run_id}", {})
423
+ File.delete('./tmp/testrail_id') if File.exist?('./tmp/testrail_id')
424
+ File.delete('./tmp/testrail_ids') if File.exist?('./tmp/testrail_ids')
417
425
  end
418
426
 
419
427
  def shutdown
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.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069