kanoah_rspec_formatter 0.2.5 → 0.2.6

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: d981a98762ef01378b796ffd0afc87d941e8f043
4
- data.tar.gz: e78ae2742bda24b4136324f16a4e5a130cc9bd77
3
+ metadata.gz: 25b23eac69e7a7ca350a0b8b549e58d195362806
4
+ data.tar.gz: 4b599d39c6d650c70ecf275d9a246255fc88cdf9
5
5
  SHA512:
6
- metadata.gz: 9bbb5eaee3f1655838264328a1ee198ff7f67523cace8bf298411ced29a394d50e2393975cfedf1d803a349b3e4938ddbbad9dd5860019919c258a2210344022
7
- data.tar.gz: 3e67a057669e4c37f8ba8c05ab211fef6df263fb1be4f539cc5bda0bb52a64b9509a1628b84875659cd6b3b715af3c8fb631d39aa54005fb3e759fe800fbcbe7
6
+ metadata.gz: 2b55a723a3b85638bd694f8aa3dd2654773d963b7c202d0d2f01650f2814d8d4ab8f1cb96c9e946ee9ff5fa342afb63d134778da80afcf26fd304cb813278fbf
7
+ data.tar.gz: 5ef6f9eba18b67bffed96dd2cf1d2ab1cba7c10c4136f73731c230e78a6dcf8c4eca894fee6b6fcf1ebcbbd39788e9e8c1b149d929938716b598b7de7cc1645d
@@ -3,7 +3,7 @@ module KanoahRSpecFormatter
3
3
  class BaseFormatter < RSpec::Core::Formatters::BaseFormatter
4
4
  NOTIFICATIONS = %i[start example_started example_passed example_failed example_pending].freeze
5
5
 
6
- def start(_notification)
6
+ def configure_api
7
7
  @api = Kanoah::Client.new(base_url: KanoahRSpecFormatter::Config.config.base_url,
8
8
  project_id: KanoahRSpecFormatter::Config.config.project_id,
9
9
  test_run_id: KanoahRSpecFormatter::Config.config.test_run_id,
@@ -11,14 +11,17 @@ class KanoahResultFormatter < KanoahRSpecFormatter::BaseFormatter
11
11
  end
12
12
 
13
13
  def example_passed(notification)
14
+ configure_api
14
15
  proccess_result(notification.example) if notification.example.metadata.key?(:test_id) && !test_id(notification.example).empty?
15
16
  end
16
17
 
17
18
  def example_failed(notification)
19
+ configure_api
18
20
  proccess_result(notification.example) if notification.example.metadata.key?(:test_id) && !test_id(notification.example).empty?
19
21
  end
20
22
 
21
23
  def example_pending(notification)
24
+ configure_api
22
25
  proccess_result(notification.example) if notification.example.metadata.key?(:test_id) && !test_id(notification.example).empty?
23
26
  end
24
27
 
@@ -1,3 +1,3 @@
1
1
  module KanoahRSpecFormatter
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  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.2.5
4
+ version: 0.2.6
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-04-04 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler