testrail-rspec 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3746fbe99cd79d2acd0003cc61ab00b2113e3d03f09d610cc3a2c5a548de63b1
4
- data.tar.gz: 390f1dcfdb5283f97ad6670528cebc717e1cdaee10905534faaf8ef764b49dd0
3
+ metadata.gz: 729881e960788ffdb03e24e6f90ba6d9ef4ae377a83287c18c6c5d5a4f42e747
4
+ data.tar.gz: 1fd18568c6a1b0f9ce05992b134267e2e1f970da5d71173f30885c8ac76595b7
5
5
  SHA512:
6
- metadata.gz: a203dee299594b3144b486c97853fd8b0103306bbba1b0e30ebdafe994e1274c676f0c932eb867a0368ac6338f9685fd5750fe7726229f99320f13aedd518eb0
7
- data.tar.gz: 4b975cd0a92bd62a10e80eb027b0e87a6d238d329ab1d17d209aff02e6b6d44856a020a5a53f7a69fa951ce2f84fd9f4e72a02df018325f8cf843b03404484a3
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
@@ -1,3 +1,3 @@
1
1
  module TestrailRspec
2
- VERSION = '0.1.7'.freeze
2
+ VERSION = '0.1.8'.freeze
3
3
  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.7
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-19 00:00:00.000000000 Z
11
+ date: 2020-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler