{"id":4598,"date":"2023-06-27T14:34:27","date_gmt":"2023-06-27T13:34:27","guid":{"rendered":"https:\/\/gdksoftware.com\/knowledgebase\/test-driven-development-in-legacy-delphi-applications"},"modified":"2023-06-27T14:47:56","modified_gmt":"2023-06-27T13:47:56","slug":"desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados","status":"publish","type":"knowledge","link":"https:\/\/gdksoftware.com\/pt-br\/base-de-conhecimento\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados","title":{"rendered":"Desenvolvimento orientado por testes em aplicativos Delphi legados"},"content":{"rendered":"<p>Como o desenvolvimento orientado a testes e os testes unit\u00e1rios podem ser aplicados em aplicativos Delphi legados com muita intera\u00e7\u00e3o com o banco de dados? Neste v\u00eddeo, Kees explicar\u00e1 como voc\u00ea pode fazer isso. Ele abordar\u00e1 os seguintes t\u00f3picos:<\/p>\n<ul>\n<li>Introdu\u00e7\u00e3o<\/li>\n<li>Por que o desenvolvimento orientado por testes?<\/li>\n<li>Como funciona o TDD<\/li>\n<li>Como escrever um bom teste<\/li>\n<li>Come\u00e7ando com o TDD<\/li>\n<li>Configurar o DUnitX<\/li>\n<li>Criar um teste para seu aplicativo<\/li>\n<li>Configurar o acesso ao banco de dados<\/li>\n<li>Testar o c\u00f3digo usando o banco de dados<\/li>\n<li>Refatorar o c\u00f3digo existente<\/li>\n<li>Testar e refatorar o c\u00f3digo em forms<\/li>\n<li>Usar mocking para depend\u00eancias<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><iframe title=\"Test-driven development in legacy Delphi applications\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/cbD2V6v-cWU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n","protected":false},"featured_media":0,"parent":0,"template":"","class_list":["post-4598","knowledge","type-knowledge","status-publish","hentry","knowledge-category-arquivo-delphi"],"acf":{"author":1384,"type_hero":"compact","hero_image":4591,"hero_image_position":"","hero_title":"Test-driven development in legacy Delphi applications","hero_content":"","hero_link":null,"hero_show_h1":false},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Desenvolvimento orientado por testes em aplicativos Delphi legados - GDK Software<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gdksoftware.com\/pt-br\/base-de-conhecimento\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Desenvolvimento orientado por testes em aplicativos Delphi legados\" \/>\n<meta property=\"og:description\" content=\"Como o desenvolvimento orientado a testes e os testes unit\u00e1rios podem ser aplicados em aplicativos Delphi legados com muita intera\u00e7\u00e3o com o banco de dados? Neste v\u00eddeo, Kees explicar\u00e1 como voc\u00ea pode fazer isso. Ele abordar\u00e1 os seguintes t\u00f3picos: Introdu\u00e7\u00e3o Por que o desenvolvimento orientado por testes? Como funciona o TDD Como escrever um bom [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gdksoftware.com\/pt-br\/base-de-conhecimento\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados\" \/>\n<meta property=\"og:site_name\" content=\"GDK Software\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-27T13:47:56+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gdksoftware.com\\\/pt-br\\\/base-de-conhecimento\\\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados\",\"url\":\"https:\\\/\\\/gdksoftware.com\\\/pt-br\\\/base-de-conhecimento\\\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados\",\"name\":\"Desenvolvimento orientado por testes em aplicativos Delphi legados - GDK Software\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gdksoftware.com\\\/pt-br#website\"},\"datePublished\":\"2023-06-27T13:34:27+00:00\",\"dateModified\":\"2023-06-27T13:47:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gdksoftware.com\\\/pt-br\\\/base-de-conhecimento\\\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gdksoftware.com\\\/pt-br\\\/base-de-conhecimento\\\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gdksoftware.com\\\/pt-br\\\/base-de-conhecimento\\\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gdksoftware.com\\\/pt-br\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledgebase\",\"item\":\"https:\\\/\\\/gdksoftware.com\\\/pt-br\\\/base-de-conhecimento\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Delphi\",\"item\":\"https:\\\/\\\/gdksoftware.com\\\/pt-br\\\/knowledgebase-category\\\/arquivo-delphi\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Desenvolvimento orientado por testes em aplicativos Delphi legados\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gdksoftware.com\\\/pt-br#website\",\"url\":\"https:\\\/\\\/gdksoftware.com\\\/pt-br\",\"name\":\"GDK Software\",\"description\":\"Zet de stip op je horizon\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gdksoftware.com\\\/pt-br?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Desenvolvimento orientado por testes em aplicativos Delphi legados - GDK Software","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gdksoftware.com\/pt-br\/base-de-conhecimento\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados","og_locale":"pt_BR","og_type":"article","og_title":"Desenvolvimento orientado por testes em aplicativos Delphi legados","og_description":"Como o desenvolvimento orientado a testes e os testes unit\u00e1rios podem ser aplicados em aplicativos Delphi legados com muita intera\u00e7\u00e3o com o banco de dados? Neste v\u00eddeo, Kees explicar\u00e1 como voc\u00ea pode fazer isso. Ele abordar\u00e1 os seguintes t\u00f3picos: Introdu\u00e7\u00e3o Por que o desenvolvimento orientado por testes? Como funciona o TDD Como escrever um bom [&hellip;]","og_url":"https:\/\/gdksoftware.com\/pt-br\/base-de-conhecimento\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados","og_site_name":"GDK Software","article_modified_time":"2023-06-27T13:47:56+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. tempo de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/gdksoftware.com\/pt-br\/base-de-conhecimento\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados","url":"https:\/\/gdksoftware.com\/pt-br\/base-de-conhecimento\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados","name":"Desenvolvimento orientado por testes em aplicativos Delphi legados - GDK Software","isPartOf":{"@id":"https:\/\/gdksoftware.com\/pt-br#website"},"datePublished":"2023-06-27T13:34:27+00:00","dateModified":"2023-06-27T13:47:56+00:00","breadcrumb":{"@id":"https:\/\/gdksoftware.com\/pt-br\/base-de-conhecimento\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gdksoftware.com\/pt-br\/base-de-conhecimento\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gdksoftware.com\/pt-br\/base-de-conhecimento\/desenvolvimento-orientado-por-testes-em-aplicativos-delphi-legados#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gdksoftware.com\/pt-br"},{"@type":"ListItem","position":2,"name":"Knowledgebase","item":"https:\/\/gdksoftware.com\/pt-br\/base-de-conhecimento"},{"@type":"ListItem","position":3,"name":"Delphi","item":"https:\/\/gdksoftware.com\/pt-br\/knowledgebase-category\/arquivo-delphi"},{"@type":"ListItem","position":4,"name":"Desenvolvimento orientado por testes em aplicativos Delphi legados"}]},{"@type":"WebSite","@id":"https:\/\/gdksoftware.com\/pt-br#website","url":"https:\/\/gdksoftware.com\/pt-br","name":"GDK Software","description":"Zet de stip op je horizon","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gdksoftware.com\/pt-br?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"}]}},"_links":{"self":[{"href":"https:\/\/gdksoftware.com\/pt-br\/wp-json\/wp\/v2\/knowledge\/4598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gdksoftware.com\/pt-br\/wp-json\/wp\/v2\/knowledge"}],"about":[{"href":"https:\/\/gdksoftware.com\/pt-br\/wp-json\/wp\/v2\/types\/knowledge"}],"acf:post":[{"embeddable":true,"href":"https:\/\/gdksoftware.com\/pt-br\/wp-json\/wp\/v2\/team\/1384"}],"wp:attachment":[{"href":"https:\/\/gdksoftware.com\/pt-br\/wp-json\/wp\/v2\/media?parent=4598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}