pact 1.30.0 → 1.31.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3246206b449a6e86f34238c21b65d9c7398bacbe
|
|
4
|
+
data.tar.gz: 81e315d3a515245380b74d5bd0af808907509915
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e639c95f870d765157461662325b366ff13b2cde410225a02e52544f06cc030338bb291ab284fb8f7bce93ddc696c9059c051884b7d2bda1bb644fde99eac6f
|
|
7
|
+
data.tar.gz: fcbd756e9af2cb0b5cbce44dbbd6afcb75d986b9c20477c2286d1c21bcee26fe7339d309886553019607901ac40d34c322b89a1fa565887e16e6dc606b472fd9
|
data/CHANGELOG.md
CHANGED
|
@@ -8,23 +8,14 @@ module Pact
|
|
|
8
8
|
module RSpec
|
|
9
9
|
class PactBrokerFormatter < ::RSpec::Core::Formatters::BaseFormatter
|
|
10
10
|
Pact::RSpec.with_rspec_3 do
|
|
11
|
-
::RSpec::Core::Formatters.register self, :
|
|
11
|
+
::RSpec::Core::Formatters.register self, :stop, :close
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
attr_reader :output_hash
|
|
15
15
|
|
|
16
16
|
def initialize(output)
|
|
17
17
|
super
|
|
18
|
-
@output_hash = {
|
|
19
|
-
:version => ::RSpec::Core::Version::STRING
|
|
20
|
-
}
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
def message(notification)
|
|
24
|
-
(@output_hash[:messages] ||= []) << notification.message
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def dump_summary(summary)
|
|
18
|
+
@output_hash = {}
|
|
28
19
|
end
|
|
29
20
|
|
|
30
21
|
def stop(notification)
|
|
@@ -33,11 +24,6 @@ module Pact
|
|
|
33
24
|
.map { |example| format_example(example) }
|
|
34
25
|
end
|
|
35
26
|
|
|
36
|
-
def seed(notification)
|
|
37
|
-
return unless notification.seed_used?
|
|
38
|
-
@output_hash[:seed] = notification.seed
|
|
39
|
-
end
|
|
40
|
-
|
|
41
27
|
def close(_notification)
|
|
42
28
|
Pact::Provider::VerificationResults::PublishAll.call(Pact.provider_world.pact_sources, output_hash)
|
|
43
29
|
end
|
|
@@ -57,6 +57,12 @@ module Pact
|
|
|
57
57
|
summary: {
|
|
58
58
|
testCount: examples_for_pact_uri.size,
|
|
59
59
|
failureCount: count_failures_for_pact_uri
|
|
60
|
+
},
|
|
61
|
+
metadata: {
|
|
62
|
+
warning: "These test results use a beta format. Do not rely on it, as it will definitely change.",
|
|
63
|
+
pactVerificationResultsSpecification: {
|
|
64
|
+
version: "1.0.0-beta.1"
|
|
65
|
+
}
|
|
60
66
|
}
|
|
61
67
|
}
|
|
62
68
|
end
|
data/lib/pact/version.rb
CHANGED