Sha256: 031ad4e7309cf2f1da992b893a7b0fff7ebc2e807f000f2a39990a0382b699df

Contents?: true

Size: 977 Bytes

Versions: 24

Compression:

Stored size: 977 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

24 entries across 24 versions & 1 rubygems

Version Path
pact-1.18.0 lib/tasks/pact.rake
pact-1.17.0 lib/tasks/pact.rake
pact-1.16.1 lib/tasks/pact.rake
pact-1.16.0 lib/tasks/pact.rake
pact-1.15.0 lib/tasks/pact.rake
pact-1.14.0 lib/tasks/pact.rake
pact-1.13.0 lib/tasks/pact.rake
pact-1.12.1 lib/tasks/pact.rake
pact-1.12.0 lib/tasks/pact.rake
pact-1.11.1 lib/tasks/pact.rake
pact-1.11.0 lib/tasks/pact.rake
pact-1.10.0 lib/tasks/pact.rake
pact-1.9.6 lib/tasks/pact.rake
pact-1.9.5 lib/tasks/pact.rake
pact-1.9.4 lib/tasks/pact.rake
pact-1.9.3 lib/tasks/pact.rake
pact-1.9.2 lib/tasks/pact.rake
pact-1.9.1 lib/tasks/pact.rake
pact-1.9.0 lib/tasks/pact.rake
pact-1.8.1 lib/tasks/pact.rake