{"id":542,"date":"2018-04-25T15:30:29","date_gmt":"2018-04-25T13:30:29","guid":{"rendered":"https:\/\/glancu.com\/blog\/?p=542"},"modified":"2018-06-15T22:10:29","modified_gmt":"2018-06-15T20:10:29","slug":"test-driven-development","status":"publish","type":"post","link":"https:\/\/glancu.com\/blog\/test-driven-development\/","title":{"rendered":"Test Driven Development"},"content":{"rendered":"<div class=\"content\"><p>Cze\u015b\u0107. Dzisiaj powiem Ci, czym jest TDD &#8211; Test Driven Development. Zapraszam!<\/p>\n<p><!--more--><\/p>\n<h3>Czym jest TDD?<\/h3>\n<blockquote>\n<h5>Test-driven development (TDD) \u2013 technika tworzenia oprogramowania, zaliczana do metodyk zwinnych. Pierwotnie by\u0142a cz\u0119\u015bci\u0105 programowania ekstremalnego (ang. extreme programming), lecz obecnie stanowi samodzieln\u0105 technik\u0119.<\/h5>\n<\/blockquote>\n<p><strong>\u0179r\u00f3d\u0142o<\/strong>:\u00a0<a href=\"https:\/\/pl.wikipedia.org\/wiki\/Test-driven_development\" target=\"_blank\" rel=\"noopener\">https:\/\/pl.wikipedia.org\/wiki\/Test-driven_development<\/a><\/p>\n<p>Czyli w skr\u00f3cie, jest to technika, w kt\u00f3rej piszemy unit testy wraz z kodem produkcyjnym. Warto zaznaczy\u0107, \u017ce na samym pocz\u0105tku piszemy unit test, a dopiero p\u00f3\u017aniej kod produkcyjny.<\/p>\n<p><strong>Dlaczego w taki spos\u00f3b?<\/strong><\/p>\n<p>Poniewa\u017c napiszemy test, kt\u00f3ry musi spe\u0142nia\u0107 okre\u015blone wymagania, a dopiero potem test produkcyjny w taki spos\u00f3b, \u017ceby te wymagania spe\u0142nia\u0142, czyli dzia\u0142a\u0142 zgodnie z za\u0142o\u017ceniami.<\/p>\n<h3>Fazy TDD<\/h3>\n<p>TDD jest podzielony na trzy fazy:<\/p>\n<ol>\n<li>Piszemy test jednostkowy, kt\u00f3ry b\u0119dzie testowa\u0142 funkcjonalno\u015b\u0107, kt\u00f3ra jeszcze nie istnieje. Mo\u017ce zdarzy\u0107 si\u0119 sytuacja, w kt\u00f3rej kod nawet nie b\u0119dzie si\u0119 kompilowa\u0142, poniewa\u017c odnosimy si\u0119 do metody, kt\u00f3ra jeszcze nie istnieje.<\/li>\n<li>Piszemy kod produkcyjny, zgodnie z za\u0142o\u017ceniami. Kod nie musi by\u0107 idealny, poniewa\u017c chodzi tutaj o fakt stworzenia kodu, kt\u00f3ry pokryje test napisany przed chwil\u0105. Je\u017celi kod napisany, to pozostaje tylko uruchomi\u0107 unit test i sprawdzi\u0107, czy faktycznie wszystko przechodzi, tak jak powinno.<\/li>\n<li>Ostatnia faza to refaktoryzacja samego kodu. Innymi s\u0142owy, chodzi o to, \u017ceby kod by\u0142 w jeszcze lepszym stanie, ni\u017c po napisaniu go na potrzeby przechodzenia unit test\u00f3w. Przyk\u0142adem takiego czyszczenia mo\u017ce by\u0107 napisane osobnej metody, kt\u00f3ra pozb\u0119dzie si\u0119 powtarzania tego samego kodu.<\/li>\n<\/ol>\n<p>Jak widzisz, s\u0105 trzy fazy, kt\u00f3re nie wygl\u0105daj\u0105 zbyt skomplikowanie od strony pisania ich. Dzi\u0119ki pisaniu w taki spos\u00f3b mo\u017cesz czu\u0107 si\u0119 swobodniej podczas aktualizowania istniej\u0105cego kodu, kt\u00f3ry jest ju\u017c na produkcji.<\/p>\n<h3>Pami\u0119taj!<\/h3>\n<p>Podczas sko\u0144czenia refaktoryzacji oraz pisania test\u00f3w, nie zapominaj o uruchamianiu wszystkich test\u00f3w jednostkowych. Dlaczego? Odpowied\u017a jest banalna, poniewa\u017c mo\u017ce zdarzy\u0107 si\u0119 tak, \u017ce w jaki\u015b spos\u00f3b &#8222;ma\u0142a zmiana&#8221; mo\u017ce powodowa\u0107 b\u0142\u0119dy w innej cz\u0119\u015bci aplikacji, kt\u00f3r\u0105 nie bierzesz pod uwag\u0119. Dlatego nie zapominaj i uruchamiaj wszystkie testy!<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"post-excerpt\">Cze\u015b\u0107. Dzisiaj powiem Ci, czym jest TDD &#8211; Test Driven Development. Zapraszam!<\/div>\n","protected":false},"author":31241,"featured_media":577,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[261],"tags":[244,243,241,242],"class_list":["post-542","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web","tag-development","tag-driven","tag-tdd","tag-test"],"better_featured_image":{"id":577,"alt_text":"test driven development","caption":"","description":"","media_type":"image","media_details":{"width":2048,"height":1365,"file":"2018\/05\/test-driven-development.png","sizes":{"thumbnail":{"file":"test-driven-development-440x290.png","width":440,"height":290,"mime-type":"image\/png","source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development-440x290.png"},"medium":{"file":"test-driven-development-300x200.png","width":300,"height":200,"mime-type":"image\/png","source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development-300x200.png"},"medium_large":{"file":"test-driven-development-768x512.png","width":768,"height":512,"mime-type":"image\/png","source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development-768x512.png"},"large":{"file":"test-driven-development-1100x733.png","width":1100,"height":733,"mime-type":"image\/png","source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development-1100x733.png"},"gazana_hd":{"file":"test-driven-development-1920x1280.png","width":1920,"height":1280,"mime-type":"image\/png","source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development-1920x1280.png"},"gazana_standard":{"file":"test-driven-development-1100x640.png","width":1100,"height":640,"mime-type":"image\/png","source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development-1100x640.png"},"gazana_square":{"file":"test-driven-development-1100x1100.png","width":1100,"height":1100,"mime-type":"image\/png","source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development-1100x1100.png"},"gazana_grid":{"file":"test-driven-development-530x380.png","width":530,"height":380,"mime-type":"image\/png","source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development-530x380.png"},"gazana_list":{"file":"test-driven-development-530x640.png","width":530,"height":640,"mime-type":"image\/png","source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development-530x640.png"},"gazana_masonry":{"file":"test-driven-development-530x353.png","width":530,"height":353,"mime-type":"image\/png","source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development-530x353.png"},"gazana_mini":{"file":"test-driven-development-100x100.png","width":100,"height":100,"mime-type":"image\/png","source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development-100x100.png"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":546,"source_url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development.png"},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Zastanawiasz si\u0119, czym jest TDD (Test Driven Development) lub jakie s\u0105 jego fazy? M\u00f3j wpis krok po kroku poka\u017ce Ci, w jaki spos\u00f3b napisa\u0107 taki test oraz na co uwa\u017ca\u0107 podczas refaktoryzacji.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Norbert Glanc\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/glancu.com\/blog\/test-driven-development\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"pl_PL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Glancu | Glancu.com | Rozw\u00f3j osobisty, kreatywno\u015b\u0107, oszcz\u0119dzanie czasu, motywacja i programowanie.\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Test Driven Development | Glancu | Glancu.com\" \/>\n\t\t<meta property=\"og:description\" content=\"Zastanawiasz si\u0119, czym jest TDD (Test Driven Development) lub jakie s\u0105 jego fazy? M\u00f3j wpis krok po kroku poka\u017ce Ci, w jaki spos\u00f3b napisa\u0107 taki test oraz na co uwa\u017ca\u0107 podczas refaktoryzacji.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/glancu.com\/blog\/test-driven-development\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2018-04-25T13:30:29+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2018-06-15T20:10:29+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Test Driven Development | Glancu | Glancu.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Zastanawiasz si\u0119, czym jest TDD (Test Driven Development) lub jakie s\u0105 jego fazy? M\u00f3j wpis krok po kroku poka\u017ce Ci, w jaki spos\u00f3b napisa\u0107 taki test oraz na co uwa\u017ca\u0107 podczas refaktoryzacji.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/#article\",\"name\":\"Test Driven Development | Glancu | Glancu.com\",\"headline\":\"Test Driven Development\",\"author\":{\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/author\\\/glancu\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/glancu.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/test-driven-development.png\",\"width\":2048,\"height\":1365,\"caption\":\"test driven development\"},\"datePublished\":\"2018-04-25T15:30:29+02:00\",\"dateModified\":\"2018-06-15T22:10:29+02:00\",\"inLanguage\":\"pl-PL\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/#webpage\"},\"articleSection\":\"WEB, development, driven, tdd, test\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/glancu.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/category\\\/web\\\/#listItem\",\"name\":\"WEB\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/category\\\/web\\\/#listItem\",\"position\":2,\"name\":\"WEB\",\"item\":\"https:\\\/\\\/glancu.com\\\/blog\\\/category\\\/web\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/#listItem\",\"name\":\"Test Driven Development\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/#listItem\",\"position\":3,\"name\":\"Test Driven Development\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/category\\\/web\\\/#listItem\",\"name\":\"WEB\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/#organization\",\"name\":\"Glancu | Glancu.com\",\"description\":\"Rozw\\u00f3j osobisty, kreatywno\\u015b\\u0107, oszcz\\u0119dzanie czasu, motywacja i programowanie.\",\"url\":\"https:\\\/\\\/glancu.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/author\\\/glancu\\\/#author\",\"url\":\"https:\\\/\\\/glancu.com\\\/blog\\\/author\\\/glancu\\\/\",\"name\":\"Norbert Glanc\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bfb750158f69b51eca9aa252c861a5569a9e5b2c32388cf5fcefecfc79569748?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Norbert Glanc\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/#webpage\",\"url\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/\",\"name\":\"Test Driven Development | Glancu | Glancu.com\",\"description\":\"Zastanawiasz si\\u0119, czym jest TDD (Test Driven Development) lub jakie s\\u0105 jego fazy? M\\u00f3j wpis krok po kroku poka\\u017ce Ci, w jaki spos\\u00f3b napisa\\u0107 taki test oraz na co uwa\\u017ca\\u0107 podczas refaktoryzacji.\",\"inLanguage\":\"pl-PL\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/author\\\/glancu\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/author\\\/glancu\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/glancu.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/test-driven-development.png\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/#mainImage\",\"width\":2048,\"height\":1365,\"caption\":\"test driven development\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/test-driven-development\\\/#mainImage\"},\"datePublished\":\"2018-04-25T15:30:29+02:00\",\"dateModified\":\"2018-06-15T22:10:29+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/glancu.com\\\/blog\\\/\",\"name\":\"Glancu | Glancu.com\",\"description\":\"Rozw\\u00f3j osobisty, kreatywno\\u015b\\u0107, oszcz\\u0119dzanie czasu, motywacja i programowanie.\",\"inLanguage\":\"pl-PL\",\"publisher\":{\"@id\":\"https:\\\/\\\/glancu.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Test Driven Development | Glancu | Glancu.com","description":"Zastanawiasz si\u0119, czym jest TDD (Test Driven Development) lub jakie s\u0105 jego fazy? M\u00f3j wpis krok po kroku poka\u017ce Ci, w jaki spos\u00f3b napisa\u0107 taki test oraz na co uwa\u017ca\u0107 podczas refaktoryzacji.","canonical_url":"https:\/\/glancu.com\/blog\/test-driven-development\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/glancu.com\/blog\/test-driven-development\/#article","name":"Test Driven Development | Glancu | Glancu.com","headline":"Test Driven Development","author":{"@id":"https:\/\/glancu.com\/blog\/author\/glancu\/#author"},"publisher":{"@id":"https:\/\/glancu.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development.png","width":2048,"height":1365,"caption":"test driven development"},"datePublished":"2018-04-25T15:30:29+02:00","dateModified":"2018-06-15T22:10:29+02:00","inLanguage":"pl-PL","mainEntityOfPage":{"@id":"https:\/\/glancu.com\/blog\/test-driven-development\/#webpage"},"isPartOf":{"@id":"https:\/\/glancu.com\/blog\/test-driven-development\/#webpage"},"articleSection":"WEB, development, driven, tdd, test"},{"@type":"BreadcrumbList","@id":"https:\/\/glancu.com\/blog\/test-driven-development\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/glancu.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/glancu.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/glancu.com\/blog\/category\/web\/#listItem","name":"WEB"}},{"@type":"ListItem","@id":"https:\/\/glancu.com\/blog\/category\/web\/#listItem","position":2,"name":"WEB","item":"https:\/\/glancu.com\/blog\/category\/web\/","nextItem":{"@type":"ListItem","@id":"https:\/\/glancu.com\/blog\/test-driven-development\/#listItem","name":"Test Driven Development"},"previousItem":{"@type":"ListItem","@id":"https:\/\/glancu.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/glancu.com\/blog\/test-driven-development\/#listItem","position":3,"name":"Test Driven Development","previousItem":{"@type":"ListItem","@id":"https:\/\/glancu.com\/blog\/category\/web\/#listItem","name":"WEB"}}]},{"@type":"Organization","@id":"https:\/\/glancu.com\/blog\/#organization","name":"Glancu | Glancu.com","description":"Rozw\u00f3j osobisty, kreatywno\u015b\u0107, oszcz\u0119dzanie czasu, motywacja i programowanie.","url":"https:\/\/glancu.com\/blog\/"},{"@type":"Person","@id":"https:\/\/glancu.com\/blog\/author\/glancu\/#author","url":"https:\/\/glancu.com\/blog\/author\/glancu\/","name":"Norbert Glanc","image":{"@type":"ImageObject","@id":"https:\/\/glancu.com\/blog\/test-driven-development\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/bfb750158f69b51eca9aa252c861a5569a9e5b2c32388cf5fcefecfc79569748?s=96&d=mm&r=g","width":96,"height":96,"caption":"Norbert Glanc"}},{"@type":"WebPage","@id":"https:\/\/glancu.com\/blog\/test-driven-development\/#webpage","url":"https:\/\/glancu.com\/blog\/test-driven-development\/","name":"Test Driven Development | Glancu | Glancu.com","description":"Zastanawiasz si\u0119, czym jest TDD (Test Driven Development) lub jakie s\u0105 jego fazy? M\u00f3j wpis krok po kroku poka\u017ce Ci, w jaki spos\u00f3b napisa\u0107 taki test oraz na co uwa\u017ca\u0107 podczas refaktoryzacji.","inLanguage":"pl-PL","isPartOf":{"@id":"https:\/\/glancu.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/glancu.com\/blog\/test-driven-development\/#breadcrumblist"},"author":{"@id":"https:\/\/glancu.com\/blog\/author\/glancu\/#author"},"creator":{"@id":"https:\/\/glancu.com\/blog\/author\/glancu\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/glancu.com\/blog\/wp-content\/uploads\/2018\/05\/test-driven-development.png","@id":"https:\/\/glancu.com\/blog\/test-driven-development\/#mainImage","width":2048,"height":1365,"caption":"test driven development"},"primaryImageOfPage":{"@id":"https:\/\/glancu.com\/blog\/test-driven-development\/#mainImage"},"datePublished":"2018-04-25T15:30:29+02:00","dateModified":"2018-06-15T22:10:29+02:00"},{"@type":"WebSite","@id":"https:\/\/glancu.com\/blog\/#website","url":"https:\/\/glancu.com\/blog\/","name":"Glancu | Glancu.com","description":"Rozw\u00f3j osobisty, kreatywno\u015b\u0107, oszcz\u0119dzanie czasu, motywacja i programowanie.","inLanguage":"pl-PL","publisher":{"@id":"https:\/\/glancu.com\/blog\/#organization"}}]},"og:locale":"pl_PL","og:site_name":"Glancu | Glancu.com | Rozw\u00f3j osobisty, kreatywno\u015b\u0107, oszcz\u0119dzanie czasu, motywacja i programowanie.","og:type":"article","og:title":"Test Driven Development | Glancu | Glancu.com","og:description":"Zastanawiasz si\u0119, czym jest TDD (Test Driven Development) lub jakie s\u0105 jego fazy? M\u00f3j wpis krok po kroku poka\u017ce Ci, w jaki spos\u00f3b napisa\u0107 taki test oraz na co uwa\u017ca\u0107 podczas refaktoryzacji.","og:url":"https:\/\/glancu.com\/blog\/test-driven-development\/","article:published_time":"2018-04-25T13:30:29+00:00","article:modified_time":"2018-06-15T20:10:29+00:00","twitter:card":"summary","twitter:title":"Test Driven Development | Glancu | Glancu.com","twitter:description":"Zastanawiasz si\u0119, czym jest TDD (Test Driven Development) lub jakie s\u0105 jego fazy? M\u00f3j wpis krok po kroku poka\u017ce Ci, w jaki spos\u00f3b napisa\u0107 taki test oraz na co uwa\u017ca\u0107 podczas refaktoryzacji."},"aioseo_meta_data":{"post_id":"542","title":"Test Driven Development | #site_title","description":"Zastanawiasz si\u0119, czym jest TDD (Test Driven Development) lub jakie s\u0105 jego fazy? M\u00f3j wpis krok po kroku poka\u017ce Ci, w jaki spos\u00f3b napisa\u0107 taki test oraz na co uwa\u017ca\u0107 podczas refaktoryzacji.","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"limit_modified_date":false,"created":"2021-01-04 21:27:07","updated":"2026-08-07 19:54:07","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/glancu.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/glancu.com\/blog\/category\/web\/\" title=\"WEB\">WEB<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tTest Driven Development\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/glancu.com\/blog"},{"label":"WEB","link":"https:\/\/glancu.com\/blog\/category\/web\/"},{"label":"Test Driven Development","link":"https:\/\/glancu.com\/blog\/test-driven-development\/"}],"_links":{"self":[{"href":"https:\/\/glancu.com\/blog\/wp-json\/wp\/v2\/posts\/542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glancu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glancu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glancu.com\/blog\/wp-json\/wp\/v2\/users\/31241"}],"replies":[{"embeddable":true,"href":"https:\/\/glancu.com\/blog\/wp-json\/wp\/v2\/comments?post=542"}],"version-history":[{"count":2,"href":"https:\/\/glancu.com\/blog\/wp-json\/wp\/v2\/posts\/542\/revisions"}],"predecessor-version":[{"id":544,"href":"https:\/\/glancu.com\/blog\/wp-json\/wp\/v2\/posts\/542\/revisions\/544"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/glancu.com\/blog\/wp-json\/wp\/v2\/media\/577"}],"wp:attachment":[{"href":"https:\/\/glancu.com\/blog\/wp-json\/wp\/v2\/media?parent=542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glancu.com\/blog\/wp-json\/wp\/v2\/categories?post=542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glancu.com\/blog\/wp-json\/wp\/v2\/tags?post=542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}