{"id":2336,"date":"2022-10-25T18:39:41","date_gmt":"2022-10-25T23:39:41","guid":{"rendered":"https:\/?p=2336"},"modified":"2023-09-01T11:14:31","modified_gmt":"2023-09-01T16:14:31","slug":"testing-formal-tests-to-development","status":"publish","type":"post","link":"https:\/\/cidenet.com.co\/en\/testing-formal-tests-to-development\/","title":{"rendered":"<strong>Testing: formal development testing<\/strong>"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"2336\" class=\"elementor elementor-2336\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-13a2303c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"13a2303c\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4ac7b69\" data-id=\"4ac7b69\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7d50eb76 elementor-widget elementor-widget-text-editor\" data-id=\"7d50eb76\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>It is very common for developers to think that their code is bug-free because they wrote it themselves. They might have tried it in two or three cases where it did not fail. Nonetheless, these small tests are not enough to ensure the correct functioning of the solution, since most of them run the so-called \u201chappy path\u201d testing, the option where everything runs correctly, which is why it is necessary to resort to what we formally call as Testing.<\/p><p>These tests are divided into four types, mentioned below, from the simplest to the most complex, respectively: unit, integration, system, and situation. The complexity of implementing such tests depends on the situation, the type of development, the methodology, and the available resources.<\/p><p>For example, starting unit testing on a development that has been running for three months would last approximately one person\u2019s full time for a couple of weeks. Besides, it could generate delay when the need to change code arises, due to an unhandled failure, which, after all, is extra time and money. Hence the importance of defining in time, what tests will be carried out on the solutions.<\/p><p>Next, I will explain two types of tests that have a lesser degree of difficulty but that, when carried out, will give a high degree of certainty of the operation of software development. They are unit tests and integration tests.<\/p><h3>\u00a0<\/h3><h3><strong>Unit tests<\/strong><\/h3><p>The purpose of this type of testing is to ensure that each component of the system works in isolation, that is, that operations are performed properly, that it receives only the types of parameters defined, that it responds correctly and that it fails when it should fail.<\/p><p>These tests take into account the minimum unit of work, which is nothing more than a function or a method that executes a specific operation or a set of operations, for which it is necessary to design tests in which the result is successful and in which , the execution fails.<\/p><p>It is important to spend enough time validating the largest number of successful and failed execution cases to have more certainty of the code to test. These tests are limited to specific code blocks, therefore, their coding is simple, but given the need to perform it on many of these blocks, in \u201clarge\u201d developments it takes a long time.<\/p><p><strong>The recommendation is to do them immediately on the new code made so as not to accumulate technical debts that in the future may affect delivery times.<\/strong><\/p><p><a href=\"http:\/\/softwaretestingfundamentals.com\/unit-testing\/\" target=\"_blank\" rel=\"noopener\">To know a little more about unit tests <strong>click here<\/strong><\/a><\/p><h3><strong>Integration testing<\/strong><\/h3><p>Its purpose is to ensure that the previously tested components, in isolation, work well with each other, that is, that they interact correctly in the sending and receiving of requests, validating that they are executed and that the responses generated are appropriate. Again success and error cases are validated to make sure that contingency methods work.<\/p><p>Its execution takes a little more time since it is necessary to lift the application context, since the integration tests also validate calls to the requests to the databases, using as a starting point the Endpoints defined in the rest of the services, therefore, it is important to integrate the security management implemented in the development into the tests.<\/p><p><a href=\"http:\/\/softwaretestingfundamentals.com\/integration-testing\/\" target=\"_blank\" rel=\"noopener\">To know more about integration tests <strong>visit this link<\/strong><\/a><\/p><p>Although unit and integration tests are not all that must be carried out on a system to ensure its operation, they are a good start since these will give you a solid base that will allow you to be certain of the development carried out. It is important to start planning how and when your development will start.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>It is very common for developers to think that their code is error-free since they wrote it themselves.<\/p>","protected":false},"author":2,"featured_media":2396,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_joinchat":[],"footnotes":""},"categories":[22,25],"tags":[],"class_list":["post-2336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-actualidad"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.3.1 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Testing: pruebas formales al desarrollo - Blog Cidenet<\/title>\n<meta name=\"description\" content=\"En este art\u00edculo hablamos de los diferentes tipos de pruebas: Pruebas unitarias y Pruebas de integraci\u00f3n y damos algunos ejemplos \u00fatiles.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Testing: pruebas formales al desarrollo\" \/>\n<meta property=\"og:description\" content=\"En este art\u00edculo hablamos de los diferentes tipos de pruebas: Pruebas unitarias y Pruebas de integraci\u00f3n y damos algunos ejemplos \u00fatiles.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/\" \/>\n<meta property=\"og:site_name\" content=\"Cidenet\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Cidenet\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-25T23:39:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-01T16:14:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cidenet.net\/wp-content\/uploads\/2022\/10\/testing-100.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"980\" \/>\n\t<meta property=\"og:image:height\" content=\"702\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Gesti\u00f3n Digital\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gesti\u00f3n Digital\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/\"},\"author\":{\"name\":\"Gesti\u00f3n Digital\",\"@id\":\"https:\/\/www.cidenet.com.co\/en\/#\/schema\/person\/ce2ea761ccf0aad04cd88749d740375b\"},\"headline\":\"Testing: pruebas formales al desarrollo\",\"datePublished\":\"2022-10-25T23:39:41+00:00\",\"dateModified\":\"2023-09-01T16:14:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/\"},\"wordCount\":700,\"publisher\":{\"@id\":\"https:\/\/www.cidenet.com.co\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/10\/testing-100.jpg\",\"articleSection\":[\"Blog\",\"Noticias de actualidad del sector TI\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/\",\"url\":\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/\",\"name\":\"Testing: pruebas formales al desarrollo - Blog Cidenet\",\"isPartOf\":{\"@id\":\"https:\/\/www.cidenet.com.co\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/10\/testing-100.jpg\",\"datePublished\":\"2022-10-25T23:39:41+00:00\",\"dateModified\":\"2023-09-01T16:14:31+00:00\",\"description\":\"En este art\u00edculo hablamos de los diferentes tipos de pruebas: Pruebas unitarias y Pruebas de integraci\u00f3n y damos algunos ejemplos \u00fatiles.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#primaryimage\",\"url\":\"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/10\/testing-100.jpg\",\"contentUrl\":\"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/10\/testing-100.jpg\",\"width\":980,\"height\":702},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Inicio\",\"item\":\"https:\/\/cidenet.com.co\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\",\"item\":\"https:\/\/www.cidenet.net\/category\/blog\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Testing: pruebas formales al desarrollo\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cidenet.com.co\/en\/#website\",\"url\":\"https:\/\/www.cidenet.com.co\/en\/\",\"name\":\"Cidenet\",\"description\":\"Desarrollamos Software a la Medida\",\"publisher\":{\"@id\":\"https:\/\/www.cidenet.com.co\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.cidenet.com.co\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.cidenet.com.co\/en\/#organization\",\"name\":\"Cidenet | Desarrollamos Software a la Medida\",\"url\":\"https:\/\/www.cidenet.com.co\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.cidenet.com.co\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/08\/Logos-cidenet-NEGATIVO.png\",\"contentUrl\":\"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/08\/Logos-cidenet-NEGATIVO.png\",\"width\":305,\"height\":68,\"caption\":\"Cidenet | Desarrollamos Software a la Medida\"},\"image\":{\"@id\":\"https:\/\/www.cidenet.com.co\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Cidenet\",\"https:\/\/www.linkedin.com\/company\/cidenet-s-a-s-\",\"https:\/\/www.instagram.com\/cidenet\/\",\"https:\/\/www.youtube.com\/@CidenetSAS\/featured\"],\"publishingPrinciples\":\"https:\/\/cidenet.com.co\/politica-de-proteccion-de-datos-personales\/\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.cidenet.com.co\/en\/#\/schema\/person\/ce2ea761ccf0aad04cd88749d740375b\",\"name\":\"Gesti\u00f3n Digital\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.cidenet.com.co\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/46146de47cbfea5e2c4c856399344b83c4cb01517926add7ec8548f8d9707f5a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/46146de47cbfea5e2c4c856399344b83c4cb01517926add7ec8548f8d9707f5a?s=96&d=mm&r=g\",\"caption\":\"Gesti\u00f3n Digital\"},\"url\":\"https:\/\/cidenet.com.co\/en\/author\/gestiondigital\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Testing: formal development tests - Blog Cidenet","description":"In this article we talk about the different types of tests: Unit Tests and Integration Tests and give some useful examples.","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:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/","og_locale":"en_US","og_type":"article","og_title":"Testing: pruebas formales al desarrollo","og_description":"En este art\u00edculo hablamos de los diferentes tipos de pruebas: Pruebas unitarias y Pruebas de integraci\u00f3n y damos algunos ejemplos \u00fatiles.","og_url":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/","og_site_name":"Cidenet","article_publisher":"https:\/\/www.facebook.com\/Cidenet","article_published_time":"2022-10-25T23:39:41+00:00","article_modified_time":"2023-09-01T16:14:31+00:00","og_image":[{"width":980,"height":702,"url":"https:\/\/www.cidenet.net\/wp-content\/uploads\/2022\/10\/testing-100.jpg","type":"image\/jpeg"}],"author":"Gesti\u00f3n Digital","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Gesti\u00f3n Digital","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#article","isPartOf":{"@id":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/"},"author":{"name":"Gesti\u00f3n Digital","@id":"https:\/\/www.cidenet.com.co\/en\/#\/schema\/person\/ce2ea761ccf0aad04cd88749d740375b"},"headline":"Testing: pruebas formales al desarrollo","datePublished":"2022-10-25T23:39:41+00:00","dateModified":"2023-09-01T16:14:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/"},"wordCount":700,"publisher":{"@id":"https:\/\/www.cidenet.com.co\/en\/#organization"},"image":{"@id":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#primaryimage"},"thumbnailUrl":"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/10\/testing-100.jpg","articleSection":["Blog","Noticias de actualidad del sector TI"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/","url":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/","name":"Testing: formal development tests - Blog Cidenet","isPartOf":{"@id":"https:\/\/www.cidenet.com.co\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#primaryimage"},"image":{"@id":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#primaryimage"},"thumbnailUrl":"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/10\/testing-100.jpg","datePublished":"2022-10-25T23:39:41+00:00","dateModified":"2023-09-01T16:14:31+00:00","description":"In this article we talk about the different types of tests: Unit Tests and Integration Tests and give some useful examples.","breadcrumb":{"@id":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#primaryimage","url":"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/10\/testing-100.jpg","contentUrl":"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/10\/testing-100.jpg","width":980,"height":702},{"@type":"BreadcrumbList","@id":"https:\/\/www.cidenet.net\/testing-pruebas-formales-al-desarrollo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Inicio","item":"https:\/\/cidenet.com.co\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/www.cidenet.net\/category\/blog\/"},{"@type":"ListItem","position":3,"name":"Testing: pruebas formales al desarrollo"}]},{"@type":"WebSite","@id":"https:\/\/www.cidenet.com.co\/en\/#website","url":"https:\/\/www.cidenet.com.co\/en\/","name":"Cidenet","description":"We develop custom Software","publisher":{"@id":"https:\/\/www.cidenet.com.co\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cidenet.com.co\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.cidenet.com.co\/en\/#organization","name":"Cidenet | we Develop custom Software","url":"https:\/\/www.cidenet.com.co\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cidenet.com.co\/en\/#\/schema\/logo\/image\/","url":"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/08\/Logos-cidenet-NEGATIVO.png","contentUrl":"https:\/\/cidenet.com.co\/wp-content\/uploads\/2022\/08\/Logos-cidenet-NEGATIVO.png","width":305,"height":68,"caption":"Cidenet | Desarrollamos Software a la Medida"},"image":{"@id":"https:\/\/www.cidenet.com.co\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Cidenet","https:\/\/www.linkedin.com\/company\/cidenet-s-a-s-","https:\/\/www.instagram.com\/cidenet\/","https:\/\/www.youtube.com\/@CidenetSAS\/featured"],"publishingPrinciples":"https:\/\/cidenet.com.co\/politica-de-proteccion-de-datos-personales\/"},{"@type":"Person","@id":"https:\/\/www.cidenet.com.co\/en\/#\/schema\/person\/ce2ea761ccf0aad04cd88749d740375b","name":"digital management","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cidenet.com.co\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/46146de47cbfea5e2c4c856399344b83c4cb01517926add7ec8548f8d9707f5a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/46146de47cbfea5e2c4c856399344b83c4cb01517926add7ec8548f8d9707f5a?s=96&d=mm&r=g","caption":"Gesti\u00f3n Digital"},"url":"https:\/\/cidenet.com.co\/en\/author\/gestiondigital\/"}]}},"_links":{"self":[{"href":"https:\/\/cidenet.com.co\/en\/wp-json\/wp\/v2\/posts\/2336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cidenet.com.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cidenet.com.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cidenet.com.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cidenet.com.co\/en\/wp-json\/wp\/v2\/comments?post=2336"}],"version-history":[{"count":0,"href":"https:\/\/cidenet.com.co\/en\/wp-json\/wp\/v2\/posts\/2336\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cidenet.com.co\/en\/wp-json\/wp\/v2\/media\/2396"}],"wp:attachment":[{"href":"https:\/\/cidenet.com.co\/en\/wp-json\/wp\/v2\/media?parent=2336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cidenet.com.co\/en\/wp-json\/wp\/v2\/categories?post=2336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cidenet.com.co\/en\/wp-json\/wp\/v2\/tags?post=2336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}