Sha256: 3e8bbde7a93de634d7be1faf5cf7af23f65f90daba2c692841dd560c4496fa76

Contents?: true

Size: 976 Bytes

Versions: 74

Compression:

Stored size: 976 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 'term/ansicolor'
    require 'pact/tasks/task_helper'

    include Pact::TaskHelper

    abort(::Term::ANSIColor.red("Please provide a pact URI. eg. rake pact:verify:at[../my-consumer/spec/pacts/my_consumer-my_provider.json]")) 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

74 entries across 74 versions & 1 rubygems

Version Path
pact-1.52.0 lib/tasks/pact.rake
pact-1.51.1 lib/tasks/pact.rake
pact-1.51.0 lib/tasks/pact.rake
pact-1.50.1 lib/tasks/pact.rake
pact-1.50.0 lib/tasks/pact.rake
pact-1.49.3 lib/tasks/pact.rake
pact-1.49.2 lib/tasks/pact.rake
pact-1.49.1 lib/tasks/pact.rake
pact-1.49.0 lib/tasks/pact.rake
pact-1.48.0 lib/tasks/pact.rake
pact-1.47.0 lib/tasks/pact.rake
pact-1.46.1 lib/tasks/pact.rake
pact-1.46.0 lib/tasks/pact.rake
pact-1.45.0 lib/tasks/pact.rake
pact-1.44.1 lib/tasks/pact.rake
pact-1.44.0 lib/tasks/pact.rake
pact-1.43.1 lib/tasks/pact.rake
pact-1.43.0 lib/tasks/pact.rake
pact-1.42.3 lib/tasks/pact.rake
pact-1.42.2 lib/tasks/pact.rake