Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-draeger committed Dec 10, 2018
1 parent bf4bff9 commit a30b25b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,17 +407,6 @@ In a real world project you should think about a suitable way to execute this co
within your build chain - for instance everytime the Producer client implementation
has changed on the consumer side.
A nice **Pact-Broker** feature in my opinion is the network graph that shows which services have dependencies to each other
or let's better say which of them assure they there compatibility by having a Pact. 🤗
![broker-network-graph](broker-network-graph.png)
When clicking on an arrow in the graph you'll see a detailed view describing the exact properties
a certain consumer relies on regarding the producers API.
Which is really great from Producers point of view to know it's consumers and furthermore what data they are consuming in detail.
![broker-network-graph](broker-pact-details-consumer-cli.png)
### Best Practices (on Consumer side)
* Use Pact for contract testing, not functional testing of the provider!!! (read more [here](https://docs.pact.io/best_practices/consumer#use-pact-for-contract-testing-not-functional-testing-of-the-provider) and [here](https://docs.pact.io/best_practices/consumer/contract_tests_not_functional_tests))
* Use Pact for isolated (unit) tests ([read more...](https://docs.pact.io/best_practices/consumer#use-pact-for-isolated-unit-tests))
Expand Down Expand Up @@ -519,6 +508,17 @@ If you run your tests and set the system property you should see a verified cont
![pact uploaded](uploaded-and-verified.png)
A nice **Pact-Broker** feature in my opinion is the network graph that shows which services have dependencies to each other
or let's better say which of them assure they there compatibility by having a Pact. 🤗
![broker-network-graph](broker-network-graph.png)
When clicking on an arrow in the graph you'll see a detailed view describing the exact properties
a certain consumer relies on regarding the producers API.
Which is really great from Producers point of view to know it's consumers and furthermore what data they are consuming in detail.
![broker-network-graph](broker-pact-details-consumer-cli.png)
### Best Practices (on Producers side)
* Ensure that the latest pact is being verified ([read more...](https://docs.pact.io/best_practices/provider#ensure-that-the-latest-pact-is-being-verified))
* Ensure that Pact verify runs as part of your CI build
Expand Down

0 comments on commit a30b25b

Please sign in to comment.