{"id":4129,"date":"2021-01-28T16:09:58","date_gmt":"2021-01-28T16:09:58","guid":{"rendered":"https:\/\/codethataint.com\/blog\/?p=4129"},"modified":"2021-01-28T17:39:11","modified_gmt":"2021-01-28T17:39:11","slug":"test-driven-development-getting-started","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/test-driven-development-getting-started\/","title":{"rendered":"Test Driven Development &#8211; Getting Started"},"content":{"rendered":"<p><strong>Basics<\/strong><\/p>\n<ol>\n<li>\n<pre>\r\n     Fail(Red)->Pass(Green) ->Refactor\r\n <\/pre>\n<ol>\n<li>New Test would <strong>fail<\/strong><\/li>\n<li>Write minimum code to <strong>pass<\/strong><\/li>\n<li>Perform <strong>refactor <\/strong>and check again<\/li>\n<\/ol>\n<\/li>\n<li>Test cases should be written for Single Logic and should test business logic<\/li>\n<li>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n @Test\r\n <\/pre>\n<\/li>\n<li><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Basics Fail(Red)->Pass(Green) ->Refactor New Test would fail Write minimum code to pass Perform refactor and check again Test cases should be written for Single Logic and should test business logic @Test<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[330],"tags":[],"class_list":["post-4129","post","type-post","status-publish","format-standard","hentry","category-test-driven-developmenttdd"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/4129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=4129"}],"version-history":[{"count":5,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/4129\/revisions"}],"predecessor-version":[{"id":4135,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/4129\/revisions\/4135"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=4129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=4129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=4129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}