testrail-cucumber 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/testrail-cucumber/update-testrails.rb +3 -1
- data/lib/testrail-cucumber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d375710817eeada58e6fc96270a0f4ecd16bfb6712c9d75a2b92b531f22102e
|
4
|
+
data.tar.gz: a1ce32c5355954c6722c1529feb7604e31aa06bd7f4cb32502b28840fa55a945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8d0802a00905dce5d453e257be25a99ba05c3fcb585346aa5902a71aad5d079ed02ca83c4a1909a0780ec2cdc4437ad4345b044d0e09334e84fdff987669bbf
|
7
|
+
data.tar.gz: 410571b6eceb2bd09094672c5ffb781cdede641f042d7478a7f5751dbe96f4b9c6731a8449f94e40596b22ec16f7d3346c7d7481ff122c26a6c8e307a84a3490
|
@@ -14,12 +14,13 @@ module TestrailCucumber
|
|
14
14
|
raise 'TestRail configuration file is required'
|
15
15
|
end
|
16
16
|
|
17
|
+
return if [@config['allow'].nil?, @config['allow']].all? false
|
17
18
|
setup_testrail_client
|
18
19
|
config_validator if $config_validator.nil?
|
19
20
|
end
|
20
21
|
|
21
22
|
def upload_result
|
22
|
-
|
23
|
+
return if [@config['allow'].nil?, @config['allow']].all? false
|
23
24
|
response = {}
|
24
25
|
|
25
26
|
case_list = []
|
@@ -92,6 +93,7 @@ module TestrailCucumber
|
|
92
93
|
def cleaner
|
93
94
|
test_run_list = client.send_get("get_runs/#{@config['project_id']}")
|
94
95
|
test_run_list.map do |list|
|
96
|
+
next if !@config['skip_testrun_ids'].nil? && @config['skip_testrun_ids'].to_s.delete(' ').split(',').any?(list['id'].to_s)
|
95
97
|
client.send_post("delete_run/#{list['id']}", {"suite_id": @config['suite_id']})
|
96
98
|
end
|
97
99
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testrail-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Prashanth Sams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|