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 +4 -4
- data/lib/itriagetestrail/version.rb +1 -1
- data/lib/itriagetestrail.rb +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ac72ea294fc337baf6e153ec9d3d5552d0a1c12
|
|
4
|
+
data.tar.gz: 21735f722c745d91333f92537882731e1903fbc3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46a24c9600bb51e73d9ad91dab1adcc7a5a4fc9c495469696b0c8f84ea9dccaad18a503504a51259d61009f65c8c0398eb457e1d27c520f5929e88c902d8b55f
|
|
7
|
+
data.tar.gz: b87fe1b01c489d9358b140c247df4c1e4a625f0b811d5146a7fea79858cb23c148b1d7e9da7f9b4dbba35267b29f853f75db073b9407a309fed03ccdcbd92f6f
|
data/lib/itriagetestrail.rb
CHANGED
|
@@ -19,7 +19,13 @@ module Itriagetestrail
|
|
|
19
19
|
def initialize(testrail_config)
|
|
20
20
|
@setup = false
|
|
21
21
|
@testrail_config = testrail_config
|
|
22
|
-
|
|
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
|