{"id":798,"date":"2022-12-07T20:53:25","date_gmt":"2022-12-07T19:53:25","guid":{"rendered":"https:\/\/metrics.blogg.gu.se\/?p=798"},"modified":"2022-11-23T21:00:33","modified_gmt":"2022-11-23T20:00:33","slug":"inline-tests-do-we-really-need-more-testing","status":"publish","type":"post","link":"https:\/\/metrics.blogg.gu.se\/?p=798","title":{"rendered":"Inline tests &#8211; do we really need more testing?"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"844\" src=\"https:\/\/metrics.blogg.gu.se\/files\/2022\/11\/vintage-4283830-1024x844.png\" alt=\"\" class=\"wp-image-799\" srcset=\"https:\/\/metrics.blogg.gu.se\/files\/2022\/11\/vintage-4283830-1024x844.png 1024w, https:\/\/metrics.blogg.gu.se\/files\/2022\/11\/vintage-4283830-300x247.png 300w, https:\/\/metrics.blogg.gu.se\/files\/2022\/11\/vintage-4283830-768x633.png 768w, https:\/\/metrics.blogg.gu.se\/files\/2022\/11\/vintage-4283830-1200x989.png 1200w, https:\/\/metrics.blogg.gu.se\/files\/2022\/11\/vintage-4283830-1320x1088.png 1320w, https:\/\/metrics.blogg.gu.se\/files\/2022\/11\/vintage-4283830.png 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption>BIld av <a href=\"https:\/\/pixabay.com\/sv\/users\/gdj-1086657\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=4283830\">Gordon Johnson<\/a> fr\u00e5n <a href=\"https:\/\/pixabay.com\/sv\/\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=4283830\">Pixabay<\/a><\/figcaption><\/figure>\n\n\n\n<p><a href=\"https:\/\/pengyunie.github.io\/p\/LiuETAL22ITest.pdf\">Inline Tests (pengyunie.github.io)<\/a><\/p>\n\n\n\n<p class=\"has-drop-cap\">Some of you may not know, but I started my career as a software tester, so I&#8217;ve done my share of defect tracking and fixing. Although it was a while ago  (well, over 20 years ago to be frank), I still remember a thing or two. I guess it is like riding a bike. One thing that I remember is that we did not really need more tests, but smarter testing. <\/p>\n\n\n\n<p>This paper, nevertheless, proposes a new type of testing &#8211; <em>inline testing<\/em> &#8211; which is supposed to replace using <em>printf(&#8230;)<\/em> in code. Instead of printing values of variables for debugging purposes, we can use the new framework to create such small inline tests and execute them. The idea is simple and contributes to the maturity of our discipline. <\/p>\n\n\n\n<p>By using inline tests, we can track the progress of our software development and its quality evolution. Since we can generate reports and use asserts, we could communicate our progress to quality management in a much better way. <\/p>\n\n\n\n<p>I need to test this framework, especially that it works with Python, my new language of choice&#8230; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inline Tests (pengyunie.github.io) Some of you may not know, but I started my career as a software tester, so I&#8217;ve done my share of defect tracking and fixing. Although it was a while ago (well, over 20 years ago to be frank), I still remember a thing or two. I guess it is like riding &hellip; <a href=\"https:\/\/metrics.blogg.gu.se\/?p=798\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Inline tests &#8211; do we really need more testing?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,5],"tags":[],"_links":{"self":[{"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/posts\/798"}],"collection":[{"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=798"}],"version-history":[{"count":1,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/posts\/798\/revisions"}],"predecessor-version":[{"id":800,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/posts\/798\/revisions\/800"}],"wp:attachment":[{"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}