Sha256: 7c71766f42c64a4fe59de5de93bcb18c5d5ccfc37ca3de281813e09fcf220392
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
# Development Workflow Using consumer driven contracts enables you to reverse the "normal" order of development, allowing you to build your consumer, in its entirety if need be, before you build your provider. The development process will be different for every organisation, but this is one that has worked for the pact authors. ## Initial development 1. Write consumer tests with pact 1. Implement consumer 1. Add `pact:publish` task to consumer build or publish pact as CI artifact 1. Create provider project 1. Configure pact:verify task to point to latest published pact 1. Implement provider until `pact:verify` passes ## New features 1. Add new feature, with pact specs, to consumer project on a branch. 1. In the provider project, use `rake pact:verify:at[/path/to/pact/on/branch]` to verify the new pact. 1. Commit/release new provider feature. 1. Merge consumer branch into master. This may seem complex, but it is actually sufacing the underlying reality, that you cannot add new functionality to the consumer before it can be supported by the provider, but that the functionality that the provider supports should still be driven by the needs of the consumer.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pact-1.2.1.rc1 | documentation/development-workflow.md |
pact-1.1.1 | documentation/development-workflow.md |