testrail-rspec 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: f03d9b29734465ad92491f798c42cf5498bbb087abd22079b5f303d47fc87a4c
4
- data.tar.gz: 302cc128374d2e651327fd0c456255c60e93fa3b7287aee20bbf6eadf2280d38
3
+ metadata.gz: ee6a338572d4b5c63227fab4748dea00e2975d390de746ed6fe42291868d6bb6
4
+ data.tar.gz: bace0b04df1c4a78e22be828a70539ca828ed8a37d3a5c8401daf19f1d10a946
5
5
  SHA512:
6
- metadata.gz: 5d8bff00ead0fea92e5a33fe3cb2f0d9b92ab1b042d47d01e2b598a45cec0911ba6ac31960381f8780469a1cb92a29ffca170bca4bc16974b93100852aef4ada
7
- data.tar.gz: fd1084895ce7708b53327d537669f5ca6b519d56e196d5a22b4bdb2d9234a06c546fc71183a28e9db05f6034d23d4b6ed89aa59c1d83a895cf0a0e82f519f7a9
6
+ metadata.gz: 38d5d5e4d685800da5a144afd40f4bd4e83392352630d28ec34d88410fbb34d48bed80750782a8c3007c563efd9eba8f1f40603dc39fb047dc76f6290add9ac2
7
+ data.tar.gz: f1d48a18b498ba0a8c7fc9e3b6751e8fd693c4a7cae7b84454abd49e48fe99bfb4b7e1d8203701267976dc92942fac467fe18366798cdb15e76addb6fe96f313
@@ -59,11 +59,8 @@ module TestrailRSpec
59
59
  @run_id = @@run_id = client.create_test_run("add_run/#{@config['project_id']}", {"suite_id": @config['suite_id']}) if @run_id.nil?
60
60
 
61
61
  case_list.map do |case_id|
62
- check_avail(:case_id, case_id)
63
- response = client.send_post(
64
- "add_result_for_case/#{@run_id}/#{case_id}",
65
- {status_id: status_id, comment: message}
66
- )
62
+ response = client.send_post("add_result_for_case/#{@run_id}/#{case_id}",{ status_id: status_id })
63
+ warn("\n###################### \ninvalid #case_id: #{case_id} \n######################") if (response.nil? || response['error'] != nil) && (response.class != Integer)
67
64
  end
68
65
 
69
66
  response
@@ -127,9 +124,6 @@ module TestrailRSpec
127
124
  warn("\n###################### \ninvalid #suite_id: #{id} \n######################") if client.send_get("get_suite/#{id}").nil? || client.send_get("get_suite/#{id}")['error'] != nil
128
125
  when :run_id
129
126
  warn("\n###################### \ninvalid #run_id: #{id} \n######################") if client.send_get("get_run/#{id}").nil? || client.send_get("get_run/#{id}")['error'] != nil
130
- when :case_id
131
- return if client.send_get("get_case/#{id}").class == Integer
132
- warn("\n###################### \ninvalid #case_id: #{id} \n######################") if client.send_get("get_case/#{id}").nil? || client.send_get("get_case/#{id}")['error'] != nil
133
127
  else
134
128
  p "no config available"
135
129
  end
@@ -1,3 +1,3 @@
1
1
  module TestrailRspec
2
- VERSION = '0.1.9'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testrail-rspec
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