testrailtagging 0.3.8.2 → 0.3.8.3
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/files/testcase_modifications.rb +10 -4
- data/lib/files/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 255ff6aaa6d669963a11e5f9238368685285b6e7
|
4
|
+
data.tar.gz: e429dc94325ba160713b5a4804d5293100f2e109
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 058a42733aa3d316d73f4cc74668e3b300622f308c25cb8025b0fc00b95f01c867b0981e43ad0a40f1511f9788e23c24ed62130d4d3a151235a5ede7d90bb8be
|
7
|
+
data.tar.gz: ce4d61d0d2ee53baa3f992475ea0d7183f9d56bf76e1e93afb90175d1693812311335c9b7bbb0c32bbdf0f04787d9e3d1e7b8834440abd5f2ff32af334896b3b
|
@@ -279,7 +279,7 @@ module TestCaseModifications
|
|
279
279
|
puts "\nTest Cases that will get modified"
|
280
280
|
trclient = TestRailOperations.get_test_rail_client
|
281
281
|
changed_cases.each do |id_key, tc_val|
|
282
|
-
puts "
|
282
|
+
puts "\t#{id_key} -> " + (!!tc_val.file ? tc_val.file : "no spec location")
|
283
283
|
url = "update_case/#{id_key}"
|
284
284
|
data = { "custom_spec_location" => tc_val.file,
|
285
285
|
"custom_automated" => tc_val.automated,
|
@@ -454,21 +454,27 @@ module TestCaseModifications
|
|
454
454
|
testcases.each do |id, testcase|
|
455
455
|
# if the testcase is marked as automated or has a spec location
|
456
456
|
if testcase.automated || !!testcase.file
|
457
|
+
puts "Test Case #{id} is out of sync /o\\"
|
457
458
|
testcase.automated = false
|
458
459
|
|
459
460
|
if !!testcase.file
|
461
|
+
puts "\tspec location is not nil"
|
460
462
|
regex = /testrail_id:(.*)(\[|\s)#{testcase.id}(\]|\s)/
|
461
463
|
|
462
464
|
begin
|
463
465
|
if File.foreach(testcase.file).grep(regex).empty?
|
464
|
-
|
466
|
+
puts "\t\tmarking spec location as nil"
|
467
|
+
testcase.file = nil
|
465
468
|
else
|
469
|
+
puts "\t\tmarking as automated"
|
466
470
|
testcase.automated = true # should only ever hit this if #update_automated_status doesn't work correctly
|
467
471
|
end
|
468
472
|
rescue Errno::ENOENT
|
469
|
-
puts "
|
470
|
-
testcase.file =
|
473
|
+
puts "\t\tNo such file or directory: #{testcase.file}"
|
474
|
+
testcase.file = nil
|
471
475
|
end
|
476
|
+
else
|
477
|
+
puts "\tmarked as automated"
|
472
478
|
end
|
473
479
|
|
474
480
|
changed_cases[id] = testcase
|
data/lib/files/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testrailtagging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.8.
|
4
|
+
version: 0.3.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|