testrail-rspec 0.1.7 → 0.1.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/testrail-rspec/update-testrails.rb +3 -1
- data/lib/testrail-rspec/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: 729881e960788ffdb03e24e6f90ba6d9ef4ae377a83287c18c6c5d5a4f42e747
|
4
|
+
data.tar.gz: 1fd18568c6a1b0f9ce05992b134267e2e1f970da5d71173f30885c8ac76595b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7c0029eb9d6960249237a13b7b0bc0781a63c324d5ee99bdda73e4cc23f45253ca53636a88fb4a5394918c3e9e3343790c9000d9c89d045e3acb557c53f19da
|
7
|
+
data.tar.gz: 4c787beab6447d8b014e31135f04b5d070292f33635905b0ded88f4acae0f70c61e5c5652087cfee5c25f785121e5e5573a397e8758c41c9619194c6ae79d74f
|
@@ -14,12 +14,13 @@ module TestrailRSpec
|
|
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 = []
|
@@ -105,6 +106,7 @@ module TestrailRSpec
|
|
105
106
|
def cleaner
|
106
107
|
test_run_list = client.send_get("get_runs/#{@config['project_id']}")
|
107
108
|
test_run_list.map do |list|
|
109
|
+
next if !@config['skip_testrun_ids'].nil? && @config['skip_testrun_ids'].to_s.delete(' ').split(',').any?(list['id'].to_s)
|
108
110
|
client.send_post("delete_run/#{list['id']}", {"suite_id": @config['suite_id']})
|
109
111
|
end
|
110
112
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testrail-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|