{"id":1501,"date":"2011-01-12T18:01:16","date_gmt":"2011-01-12T23:01:16","guid":{"rendered":"http:\/\/crazedmonkey.com\/blog\/links\/mf-bliki-integrationcontracttest.html"},"modified":"2011-01-12T18:01:16","modified_gmt":"2011-01-12T23:01:16","slug":"mf-bliki-integrationcontracttest","status":"publish","type":"post","link":"http:\/\/crazedmonkey.com\/blog\/links\/mf-bliki-integrationcontracttest.html","title":{"rendered":"MF Bliki: IntegrationContractTest"},"content":{"rendered":"<p>When testing against an external service, it&#8217;s common to mock that external service. But what if the contract for the external service changes? Your tests will still pass, but your application will fail.<\/p>\n<p>Martin Fowler advocates an integration contract test which tests your application against the service. These tests are not run as frequently and should not always cause a build failure, but rather should &#8220;trigger a task to get things consistent again.&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When testing against an external service, it&#8217;s common to mock that external service. But what if the contract for the external service changes? Your tests will still pass, but your application will fail.<\/p>\n<p>Martin Fowler advocates an integration contract test which tests your application against the service. These tests are not run as frequently and&nbsp;&hellip;&nbsp;<a class=\"read_more\" href=\"http:\/\/crazedmonkey.com\/blog\/links\/mf-bliki-integrationcontracttest.html\" rel=\"bookmark\" title=\"Continue reading &ldquo;MF Bliki: IntegrationContractTest&rdquo;\"><span>Read more<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[33],"tags":[],"_links":{"self":[{"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/posts\/1501"}],"collection":[{"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/comments?post=1501"}],"version-history":[{"count":0,"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/posts\/1501\/revisions"}],"wp:attachment":[{"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/media?parent=1501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/categories?post=1501"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/tags?post=1501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}