Sha256: 053316b1db9262bf8e568692f6f6ee8fdd8675fe07eff6c8faa3d1631cd39a38
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
require './lib/pact/provider/pact_spec_runner' namespace :pact do desc 'Runs pact tests against a sample application, testing failure and success.' task :tests do silent = true puts "Running task pact:tests" # Run these specs silently, otherwise expected failures will be written to stdout and look like unexpected failures. result = Pact::Provider::PactSpecRunner.new([{ uri: './spec/support/test_app_pass.json' }], silent: silent).run fail 'Expected pact to pass' unless (result == 0) result = Pact::Provider::PactSpecRunner.new([{ uri: './spec/support/test_app_fail.json', support_file: './spec/support/pact_helper.rb' }], silent: silent).run fail 'Expected pact to fail' if (result == 0) puts "Task pact:tests completed succesfully." end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pact-1.0.5 | tasks/pact-test.rake |