test_rail_integration 0.0.7.7 → 0.0.7.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f34c64bb41172bbe51fce0129abd95ea6c2138af
|
4
|
+
data.tar.gz: 812ea59f2e49c08e07716f89d144628bba874726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bca3d20e0fe45e945123d186bb3934cca8b81486a6a6cad7618820ee362b1051f15f69ebfac91a5da8706ea7f97f503a13c72c3b7465801a6716751d9cbdf0c6
|
7
|
+
data.tar.gz: ba8980f0568b2f75bb822b55bdb538f76315d3e659c7d7d50e21c3655f47872e30fe110abc8477e5977f30fcb3a8855e57714933acaf22e55eaa31ec42f1068a
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require_relative 'generator/project'
|
3
|
+
require_relative '../test_rail_integration/generator/project/check_test_run'
|
3
4
|
|
4
5
|
module TestRailIntegration
|
5
6
|
class CLI < Thor
|
@@ -13,7 +14,7 @@ module TestRailIntegration
|
|
13
14
|
desc "check_test_run_and_update", "Check test run statuses and update"
|
14
15
|
|
15
16
|
def check_test_run_and_update
|
16
|
-
check
|
17
|
+
TestRailIntegration::TestRail::CheckTestRun.check
|
17
18
|
end
|
18
19
|
end
|
19
20
|
end
|
data/spec/check_test_run_spec.rb
CHANGED
@@ -13,7 +13,7 @@ describe 'Checking test run' do
|
|
13
13
|
allow(TestRail::Connection).to receive(:get_case_info).and_return({id: 1011, "title" => 'MLP'})
|
14
14
|
allow(TestRail::Connection).to receive(:commit_test_result).and_return([])
|
15
15
|
|
16
|
-
test_case_result = TestRail::CheckTestRun.
|
16
|
+
test_case_result = TestRail::CheckTestRun.check
|
17
17
|
expect(test_case_result.title).to eq('MLP')
|
18
18
|
expect(test_case_result.comment).to eq({:status => 5, :comment => "test **failed:**"})
|
19
19
|
end
|