{"id":316,"date":"2024-12-07T22:51:18","date_gmt":"2024-12-07T22:51:18","guid":{"rendered":"https:\/\/www.mitango.app\/?post_type=definition&#038;p=316"},"modified":"2024-12-07T22:51:18","modified_gmt":"2024-12-07T22:51:18","slug":"bug","status":"publish","type":"definition","link":"https:\/\/www.mitango.app\/fr\/definition\/bug\/","title":{"rendered":"Bug"},"content":{"rendered":"<p>A bug is an incoherent behavior from the application which is visible by the end user.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Incoherent behavior and bug<\/h3>\n\n\n\n<p>A bug is an incoherent behavior but the opposite is not true.<\/p>\n\n\n\n<p>The main difference between them is the impact on the end user, for an incoherent behavior to be a bug it needs to be visible from the end user.<\/p>\n\n\n\n<p>This makes a bug a tangible concern to be handled where often the incoherent behavior is the root cause from the bug and can live for year without having a real impact. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What to test<\/h3>\n\n\n\n<p>While testing our objective is to make the application as stable as possible for the end user.<\/p>\n\n\n\n<p>Due to that it is important that tests we write focus on bugs rather than incoherent behavior from the application and that for a simple reason, most of the incoherent behavior will end up invisible to the end user.<\/p>\n\n\n\n<p>This is not the case for bugs as per definition they are visible to the end user and by focusing on them rather than all incoherent behavior we will save a lot of time by not writing tests with little to no value.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"522\" src=\"https:\/\/www.mitango.app\/app\/uploads\/2024\/11\/bug-vs-incorrect-behavior.png\" alt=\"\" class=\"wp-image-251\" srcset=\"https:\/\/www.mitango.app\/app\/uploads\/2024\/11\/bug-vs-incorrect-behavior.png 700w, https:\/\/www.mitango.app\/app\/uploads\/2024\/11\/bug-vs-incorrect-behavior-300x224.png 300w, https:\/\/www.mitango.app\/app\/uploads\/2024\/11\/bug-vs-incorrect-behavior-16x12.png 16w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure>","protected":false},"excerpt":{"rendered":"<p>A bug is an incoherent behavior from the application which is visible by the end user. Incoherent behavior and bug A bug is an incoherent behavior but the opposite is not true. The main difference between them is the impact on the end user, for an incoherent behavior to be a bug it needs to [&hellip;]<\/p>","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"class_list":["post-316","definition","type-definition","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.mitango.app\/fr\/wp-json\/wp\/v2\/definition\/316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mitango.app\/fr\/wp-json\/wp\/v2\/definition"}],"about":[{"href":"https:\/\/www.mitango.app\/fr\/wp-json\/wp\/v2\/types\/definition"}],"version-history":[{"count":5,"href":"https:\/\/www.mitango.app\/fr\/wp-json\/wp\/v2\/definition\/316\/revisions"}],"predecessor-version":[{"id":356,"href":"https:\/\/www.mitango.app\/fr\/wp-json\/wp\/v2\/definition\/316\/revisions\/356"}],"wp:attachment":[{"href":"https:\/\/www.mitango.app\/fr\/wp-json\/wp\/v2\/media?parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mitango.app\/fr\/wp-json\/wp\/v2\/categories?post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}