This is required in all the verification modules.
So we keep the functionality similar between the implementations, here's the doco from the ruby wiki:
If you are using version 1.11.0 or later of the pact gem and 2.0.0 or later of the pact broker, you can automatically publish the results of pact verifications back to the broker by setting the app_version and publish_verification_results options in your service provider configuration. The recommended way to do this so that you only publish verifications from your CI is:
build_number = ENV.fetch('BUILD_NUMBER','alpha')
publish_flag = !!ENV['BUILD_NUMBER']
Pact.service_provider "My Service Provider" do
app_version "1.3.#{build_number}"
publish_verification_results publish_flag
end
If your pact URL includes basic auth configurations for the pact broker, these will be used to publish the verification.
Released 4.5.4 with publishing verification results
馃憤
Documentation updated: https://github.com/pact-foundation/pact_broker/wiki/Provider-verification-results#publishing
Most helpful comment
Released 4.5.4 with publishing verification results