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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c364f8ec7e6d8546b686fce3bcb6363e2102616c74dba9445c5168541631af7a
4
- data.tar.gz: 329e4e2692a1c9430b5a2bb68733514eae307b9efe8bfba75160a3e5103b8d45
3
+ metadata.gz: 8d375710817eeada58e6fc96270a0f4ecd16bfb6712c9d75a2b92b531f22102e
4
+ data.tar.gz: a1ce32c5355954c6722c1529feb7604e31aa06bd7f4cb32502b28840fa55a945
5
5
  SHA512:
6
- metadata.gz: f452928d684e5c677d54263403bd93de7556d1e9d8a61896fb106e45584fad1339ec3b5403161adfe6480395a86af28b7df985358bd34646221964e37120546f
7
- data.tar.gz: 0e09fef2a92beaf30fede7defcb68d406fe23742e27fc67a45ff86c43d1179002bdc2fa302e0b08751d066f7b910b3c8fcd6a9ed9eac46c9dbea6708f8595d13
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
@@ -1,3 +1,3 @@
1
1
  module TestrailCucumber
2
- VERSION = '0.1.9'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  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.1.9
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-19 00:00:00.000000000 Z
11
+ date: 2020-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler