kanoah_rspec_formatter 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/kanoah_rspec_formatter.gemspec +3 -3
- data/lib/kanoah_rspec_formatter/rspec_steps.rb +1 -0
- metadata +5 -6
- data/lib/kanoah_testcase_formatter.rb +0 -79
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0b2f2d4b3de7ec4b60588a7be5452960318d302
|
4
|
+
data.tar.gz: 8679bf7c5693f2272ea700a237b93b3c5831baa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 950c7cb31f20fc3bc47a4f45e1467a2b1eed89ee712a170d7f89766b1ddb01e51b21b053469aa22e5c0b2bf54557ac904ae281b56ede70d1f34389678a546e2d
|
7
|
+
data.tar.gz: ac0d6e0b5e679bdd9458c9e68664110b4328cb46bee7b0912f37d96f15a507278183cdbe4aa9e53a32330bd34be5d0a97fc4b0e0e3d0dcf1d76f6a928ea49699
|
data/Gemfile.lock
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'kanoah_rspec_formatter'
|
5
|
-
spec.version = '0.1.
|
5
|
+
spec.version = '0.1.1'
|
6
6
|
spec.authors = ['Automation Wizards']
|
7
7
|
spec.email = ['Justin.Commu@loblaw.ca']
|
8
8
|
|
@@ -18,6 +18,6 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
20
|
spec.add_runtime_dependency 'rspec', '>= 3.5.0'
|
21
|
-
spec.add_runtime_dependency 'kanoah_ruby', '>= 0.1
|
21
|
+
spec.add_runtime_dependency 'kanoah_ruby', '>= 0.0.1'
|
22
22
|
|
23
|
-
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kanoah_rspec_formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Automation Wizards
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1
|
33
|
+
version: 0.0.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.1
|
40
|
+
version: 0.0.1
|
41
41
|
description: A RSpec formatter for Kanoah
|
42
42
|
email:
|
43
43
|
- Justin.Commu@loblaw.ca
|
@@ -57,7 +57,6 @@ files:
|
|
57
57
|
- lib/kanoah_rspec_formatter/adapter.rb
|
58
58
|
- lib/kanoah_rspec_formatter/configuration.rb
|
59
59
|
- lib/kanoah_rspec_formatter/rspec_steps.rb
|
60
|
-
- lib/kanoah_testcase_formatter.rb
|
61
60
|
homepage: https://loblawdigital.ca
|
62
61
|
licenses:
|
63
62
|
- MIT
|
@@ -78,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
77
|
version: '0'
|
79
78
|
requirements: []
|
80
79
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.6.
|
80
|
+
rubygems_version: 2.6.10
|
82
81
|
signing_key:
|
83
82
|
specification_version: 4
|
84
83
|
summary: ''
|
@@ -1,79 +0,0 @@
|
|
1
|
-
require_relative 'kanoah_formatter/base_formatter'
|
2
|
-
class KanoahTestcaseFormatter < KanoahRSpecFormatter::BaseFormatter
|
3
|
-
|
4
|
-
RSpec::Core::Formatters.register self, *NOTIFICATIONS
|
5
|
-
|
6
|
-
def start(notification)
|
7
|
-
super(notification)
|
8
|
-
end
|
9
|
-
|
10
|
-
def example_passed(notification)
|
11
|
-
proccess_result(notification.example)
|
12
|
-
end
|
13
|
-
|
14
|
-
def example_pending(notification)
|
15
|
-
proccess_result(notification.example)
|
16
|
-
end
|
17
|
-
|
18
|
-
private
|
19
|
-
|
20
|
-
def proccess_result(example)
|
21
|
-
|
22
|
-
test_id = @api.post_new_test_case(testcase_body(example))
|
23
|
-
# @api.post_new_result_to_run(body)
|
24
|
-
update_exomple(example, test_id)
|
25
|
-
end
|
26
|
-
|
27
|
-
def testcase_body(example)
|
28
|
-
{
|
29
|
-
projectKey: project_key(example),
|
30
|
-
name: description(example),
|
31
|
-
folder: '',
|
32
|
-
status: '',
|
33
|
-
priority: '',
|
34
|
-
component: '',
|
35
|
-
labels: '',
|
36
|
-
testScript: ''
|
37
|
-
}
|
38
|
-
end
|
39
|
-
|
40
|
-
def project_key(example)
|
41
|
-
example[:project]
|
42
|
-
end
|
43
|
-
|
44
|
-
def description(example)
|
45
|
-
example[:description]
|
46
|
-
end
|
47
|
-
|
48
|
-
def update_example(example, test_id)
|
49
|
-
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
# def post_new_test_case(body)
|
54
|
-
# @response = self.class.post("/rest/kanoahtests/1.0/testcase", body: body.to_json, headers: @header)
|
55
|
-
# self
|
56
|
-
# end
|
57
|
-
|
58
|
-
# {
|
59
|
-
# "projectKey": "JQA",
|
60
|
-
# "name": "Ensure the axial-flow pump is enabled",
|
61
|
-
# "precondition": "The precondition.",
|
62
|
-
# "objective": "The objective.",
|
63
|
-
# "folder": "/Orbiter/Cargo Bay",
|
64
|
-
# "status": "Approved",
|
65
|
-
# "priority": "Low",
|
66
|
-
# "component": "Valves",
|
67
|
-
# "owner": "vitor.pelizza",
|
68
|
-
# "estimatedTime": 138000,
|
69
|
-
# "labels": ["Smoke", "Functional"],
|
70
|
-
# "testScript": {
|
71
|
-
# "type": "STEP_BY_STEP",
|
72
|
-
# "steps": [
|
73
|
-
# {
|
74
|
-
# "description": "Ignite the secondary propulsion engines.",
|
75
|
-
# "expectedResult": "Ensure the high-pressure combustion chamber's pressure is around 3000 psi."
|
76
|
-
# }
|
77
|
-
# ]
|
78
|
-
# }
|
79
|
-
# }
|