sealights-rspec-agent 2.0.3 → 2.0.4
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/agent/listener.rb +1 -1
- data/agent/sealights-rspec-agent.rb +11 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81245ae80b875a6789c374054309de31ea695d1abd35fafb75df89765c027114
|
4
|
+
data.tar.gz: aa15632ff91cf8281c1356ad719164597c395d7582e993760db1a2ca91f38c82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b97d226684520118b2469c0a05930df8764b5a749f9922ddc359b1ac87099ffa63bec7ec30ba6024bd44794cd9a661e7e35a12f6063e0e954ed3c5d073bc956
|
7
|
+
data.tar.gz: 3da4f3e5f71f13bce12a77deb7e7ca9ed2b044ba21319580e730cba36246a62567d6e230d76739cc3b297b41b98a821ca27ed55997e6a14a68a096fd798efd52
|
data/agent/listener.rb
CHANGED
@@ -15,16 +15,18 @@ require_relative './utils'
|
|
15
15
|
require 'rspec'
|
16
16
|
|
17
17
|
RSpec.configure do |rspec_config|
|
18
|
-
|
18
|
+
begin
|
19
|
+
http_client = RestClientWrapper.new
|
19
20
|
|
20
|
-
|
21
|
+
cfg = AgentConfiguration.new(http_client, EnvironmentVariablesReader.new)
|
21
22
|
|
22
|
-
|
23
|
-
|
24
|
-
|
23
|
+
tia_config = TiaConfig.new(cfg.tia_enabled, cfg.server, cfg.build_session_id, cfg.test_stage, cfg.polling_interval_secs, cfg.polling_timeout_secs)
|
24
|
+
tia_applier = TiaApplier.new(http_client, RspecExampleClassModifier.new, tia_config)
|
25
|
+
tia_applier.apply_configuration
|
25
26
|
|
26
|
-
|
27
|
-
|
28
|
-
rescue Exception => e
|
29
|
-
|
27
|
+
listener = RSpecListener.new(http_client, cfg.server, cfg.customer_id, cfg.app_name, cfg.build, cfg.branch, cfg.test_stage, cfg.build_session_id, tia_applier.test_selection_status)
|
28
|
+
rspec_config.reporter.register_listener listener, :start, :example_started, :example_passed, :example_failed, :example_pending, :example_finished, :stop
|
29
|
+
rescue Exception => e
|
30
|
+
error "Could not subscribe RSpec Agent to test run. #{e.message}.", e
|
31
|
+
end
|
30
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sealights-rspec-agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SeaLights
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|