cukerail 0.4.1 → 0.4.2
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/cukerail/version.rb +1 -1
- data/lib/cukerail.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97b9ba104a1fbce044ad23a71d148d58a6afc297
|
|
4
|
+
data.tar.gz: 54771f9de8f19ddb51cf6a07b926075bce6d8076
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fccc7cd721b0ed8745d40ab000ce6857888af2ae450cffd38ea4b95cd7028e255e215ce79c1cda6f7bf7786a6809247187e52a7245bb76ceedb75494c48614dd
|
|
7
|
+
data.tar.gz: 69c365d6b3268ba91053f8daac57fde48645016626bdd951e87bf0de1ec016577c3aa859bc9a1530306c45bd5522519e1319a4c1be2051fff274fe665428e945
|
data/lib/cukerail/version.rb
CHANGED
data/lib/cukerail.rb
CHANGED
|
@@ -153,7 +153,8 @@ module Cukerail
|
|
|
153
153
|
else
|
|
154
154
|
failure_message = nil
|
|
155
155
|
end
|
|
156
|
-
|
|
156
|
+
#only send defects if the test is not passed
|
|
157
|
+
report_on_result = {status_id:testrail_status[:id],comment:failure_message,defects:testrail_status[:id]==1 ? '' : defects(test_case)}
|
|
157
158
|
begin
|
|
158
159
|
testrail_api_client.send_post("add_result_for_case/#{testrun}/#{id}",report_on_result)
|
|
159
160
|
rescue => e
|