cukerail 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cukerail/version.rb +1 -1
- data/lib/json_sender.rb +4 -3
- data/lib/tasks/cukerail.rake +1 -0
- 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: 89cc129ef2405374219790ba71227bdb5e178904
|
4
|
+
data.tar.gz: 91fe06120de5a825258e14fed46423e70ce2fda9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ef15180c2f8c5142987e98e705037d9db0379d8e10d07df25e12b677917ad15358f59c893e8a98d206467e9d7272ad3ad0782d6c11b51ebff4a8735ff4ff834
|
7
|
+
data.tar.gz: 6ca51caba884892fcc3abc6932d1f5da6258ce9efe0096c64de1ec11806883ab81bd306fcdb2c0fb5264f6a1e95d19f0275042e9dcd7115a662a59a3260c1870
|
data/lib/cukerail/version.rb
CHANGED
data/lib/json_sender.rb
CHANGED
@@ -68,8 +68,8 @@ module Cukerail
|
|
68
68
|
def prepare_data(scenario,background_steps)
|
69
69
|
steps = background_steps + "\n" + scenario['steps'].map{|s| s['keyword']+s['name']}.join("\n")
|
70
70
|
type_ids = [1]
|
71
|
-
type_ids << 7 if
|
72
|
-
type_ids << 13 if
|
71
|
+
type_ids << 7 if scenario['tags'].any?{|tag| tag['name'] =~/manual/}
|
72
|
+
type_ids << 13 if scenario['tags'].any?{|tag| tag['name'] =~/on_hold/}
|
73
73
|
#get the highest precedence type found in the tags. E.g. if it's @on_hold and @manual it selects 13 for on hold
|
74
74
|
type_id = ([13,7,1] & type_ids).first
|
75
75
|
|
@@ -193,7 +193,8 @@ module Cukerail
|
|
193
193
|
def remove_all_except_these_cases_from_suite(testcases,project_id,suite_id)
|
194
194
|
puts '=== testcases === '
|
195
195
|
puts testcases
|
196
|
-
|
196
|
+
# get a list of automated tests, ignore manual or on hold tests
|
197
|
+
existing_cases = testrail_api_client.send_get("get_cases/#{project_id}&suite_id=#{suite_id}").select{|t| t['type_id']==1}.map{|m| m['id']}
|
197
198
|
puts '===== existing_cases === '
|
198
199
|
puts existing_cases
|
199
200
|
(existing_cases - testcases).each do |case_to_remove|
|
data/lib/tasks/cukerail.rake
CHANGED