Sha256: b24915f50f87c59846728b37ad08f33540386a805c886a5d291cff306e00a761
Contents?: true
Size: 959 Bytes
Versions: 5
Compression:
Stored size: 959 Bytes
Contents
namespace :pact do desc "Verifies the pact files configured in the pact_helper.rb against this service provider." task :verify do require 'pact/tasks/task_helper' include Pact::TaskHelper handle_verification_failure do execute_pact_verify end end desc "Verifies the pact at the given URI against this service provider." task 'verify:at', :pact_uri do | t, args | require 'rainbow' require 'pact/tasks/task_helper' include Pact::TaskHelper abort(Rainbow("Please provide a pact URI. eg. rake pact:verify:at[../my-consumer/spec/pacts/my_consumer-my_provider.json]").red) unless args[:pact_uri] handle_verification_failure do execute_pact_verify args[:pact_uri] end end desc "Get help debugging pact:verify failures." task 'verify:help', :reports_dir do | t, args | require 'pact/provider/help/console_text' puts Pact::Provider::Help::ConsoleText.(args[:reports_dir]) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
pact-1.66.1 | lib/tasks/pact.rake |
pact-1.66.0 | lib/tasks/pact.rake |
pact-1.65.3 | lib/tasks/pact.rake |
pact-1.65.2 | lib/tasks/pact.rake |
pact-1.65.1 | lib/tasks/pact.rake |