{"id":157774,"date":"2025-11-28T07:00:00","date_gmt":"2025-11-28T06:00:00","guid":{"rendered":"https:\/\/e326.greatsolution.dev\/?p=157774"},"modified":"2026-03-25T13:19:21","modified_gmt":"2026-03-25T12:19:21","slug":"why-unit-tests","status":"publish","type":"post","link":"https:\/\/e326.greatsolution.dev\/en\/why-unit-tests\/","title":{"rendered":"Why unit tests?"},"content":{"rendered":"<p>Warum ist die Verwendung von Unit-Tests \u00e4u\u00dferst sinnvoll? Beim Eingehen auf die Thematik zeigen wir die Vor- und Nachteile auf und vermitteln Grundlagenwissen.<\/p>\n\n\n\n<p>Testgetriebene Entwicklung ist eine Methode der agilen Softwareentwicklung. Hier erstellen Entwicklerinnen und Entwickler Unit-Tests konsequent vor den zu testenden Code-Abschnitten bzw. Komponenten. Mittels Unit-Tests lassen sich Funktionen darauf \u00fcberpr\u00fcfen, ob sie wie beabsichtigt arbeiten. Dies kann sowohl manuell als auch automatisiert erfolgen. Dabei ist erw\u00e4hnenswert, dass das Anwenden von Unit-Tests nicht zwingend mit der testgetriebenen Entwicklung gleichgestellt werden muss, denn Unit-Tests k\u00f6nnen auch nachtr\u00e4glich implementiert werden.<\/p><div class=\"great-fullsize-content-en\" style=\"margin-bottom: 20px;\" id=\"great-2869671017\"><a data-no-instant=\"1\" href=\"https:\/\/e326.greatsolution.dev\/en\/media-kit\/\" rel=\"noopener\" class=\"a2t-link\" target=\"_blank\" aria-label=\"nl_advertising_800x100\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2024\/08\/nl_werbung_800x100.jpg\" alt=\"\"  srcset=\"https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2024\/08\/nl_werbung_800x100.jpg 800w, https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2024\/08\/nl_werbung_800x100-400x50.jpg 400w, https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2024\/08\/nl_werbung_800x100-768x96.jpg 768w, https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2024\/08\/nl_werbung_800x100-100x13.jpg 100w, https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2024\/08\/nl_werbung_800x100-480x60.jpg 480w, https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2024\/08\/nl_werbung_800x100-640x80.jpg 640w, https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2024\/08\/nl_werbung_800x100-720x90.jpg 720w, https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2024\/08\/nl_werbung_800x100-18x2.jpg 18w, https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2024\/08\/nl_werbung_800x100-600x75.jpg 600w\" sizes=\"(max-width: 800px) 100vw, 800px\" width=\"1000\" height=\"100\"  style=\" max-width: 100%; height: auto;\" \/><\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">SAP-Entwicklungsumgebung<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>Abap Unit ist ein zentraler Bestandteil der SAP-Entwicklungsumgebung. Es wird in Eclipse als auch in der SAP-internen Entwicklungsumgebung SE80 unterst\u00fctzt. Unit-Tests werden in einer gesonderten Laufzeitumgebung durchgef\u00fchrt, die den Entwickelnden eine Vielzahl an Optionen und Diagnosem\u00f6glichkeiten bietet.<\/p>\n\n\n\n<div class=\"wp-block-pmpro-membership is-layout-flow wp-block-membership-is-layout-flow\">\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\">Lesen Sie jetzt weiter<\/h2>\n\n\n\n<p class=\"has-text-align-center\">Sie sind bereits Premium-Mitglied? Hier anmelden<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-e66962e stk-block-background\" id=\"premium-mitgliedschaft\" data-block-id=\"e66962e\"><style>.stk-e66962e .stk-block-heading__top-line{height:0px !important;width:0px !important;}.stk-e66962e {background-color:#cd1719 !important;border-style:solid !important;margin-bottom:0px !important;top:0px !important;bottom:-100px !important;position:relative !important;}.stk-e66962e:before{background-color:#cd1719 !important;}.stk-e66962e .stk-block-heading__text{font-size:30px !important;color:#ffffff !important;}@media screen and (max-width:1199px){.stk-e66962e .stk-block-heading__text{font-size:30px !important;}}<\/style><h2 class=\"stk-block-heading__text has-text-color has-text-align-center\">Premium-Mitgliedschaft<\/h2><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-d3deee2 stk-block-background\" data-block-id=\"d3deee2\"><style>.stk-d3deee2 {border-top-left-radius:0px !important;border-top-right-radius:0px !important;border-bottom-right-radius:0px !important;border-bottom-left-radius:0px !important;overflow:hidden !important;margin-bottom:0px !important;}<\/style><p class=\"stk-block-text__text has-text-align-center\">+ Zugriff auf diesen und alle anderen Artikel<br>+ Monatlich mit nur einem Klick k\u00fcndbar<br>+ Zehn E3-Magazin-Ausgaben im Jahr<br><br><strong>Premium light<\/strong>: 4 Wochen f\u00fcr 9,90\u20ac<br><strong>Premium VIP<\/strong>: 88,80\u20ac<br><strong>Premium Superior<\/strong>: 120\u20ac<\/p><\/div>\n\n\n\n<div class=\"wp-block-buttons alignfull is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\">Zur Angebotsauswahl<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n\n<div class=\"pmpro\"><div class=\"pmpro_card pmpro_content_message\"><h2 class=\"pmpro_card_title pmpro_font-large\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"24\" height=\"24\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"var(--pmpro--color--accent)\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-lock\"><rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"><\/rect><path d=\"M7 11V7a5 5 0 0 1 10 0v4\"><\/path><\/svg>Membership Required<\/h2><div class=\"pmpro_card_content\"><p> You must be a member to access this content.<\/p><p><a class=\"pmpro_btn\" href=\"https:\/\/e326.greatsolution.dev\/en\/packages\/\">View Membership Levels<\/a><\/p><\/div><div class=\"pmpro_card_actions pmpro_font-medium\">Already a member? <a href=\"https:\/\/e326.greatsolution.dev\/en\/login\/?redirect_to=https%3A%2F%2Fe326.greatsolution.dev%2Fen%2Fwhy-unit-tests%2F\">Log in here<\/a><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>For most developers, \u201eunit test\u201c and \u201etest-driven development\u201c are no longer foreign words. Nevertheless, not too many programmers use them in practice for a variety of reasons. <\/p>","protected":false},"author":2368,"featured_media":157802,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"pmpro_default_level":"","footnotes":""},"categories":[44321,5],"tags":[],"coauthors":[39720],"class_list":["post-157774","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mag-25-11","category-it-management","pmpro-has-access"],"acf":[],"featured_image_urls_v2":{"full":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-scaled.jpg",1920,840,false],"thumbnail":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-150x150.jpg",150,150,true],"medium":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-400x175.jpg",400,175,true],"medium_large":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-768x336.jpg",768,336,true],"large":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-1200x525.jpg",1200,525,true],"image-100":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-100x44.jpg",100,44,true],"image-480":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-480x210.jpg",480,210,true],"image-640":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-640x280.jpg",640,280,true],"image-720":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-720x315.jpg",720,315,true],"image-960":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-960x420.jpg",960,420,true],"image-1168":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-1168x511.jpg",1168,511,true],"image-1440":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-1440x630.jpg",1440,630,true],"image-1920":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-1920x840.jpg",1920,840,true],"1536x1536":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-1536x672.jpg",1536,672,true],"2048x2048":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-2048x896.jpg",1920,840,true],"trp-custom-language-flag":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-18x8.jpg",18,8,true],"bricks_large_16x9":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-1200x675.jpg",1200,675,true],"bricks_large":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-1200x525.jpg",1200,525,true],"bricks_large_square":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-1200x1200.jpg",1080,1080,true],"bricks_medium":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-600x263.jpg",600,263,true],"bricks_medium_square":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-600x600.jpg",600,600,true],"profile_24":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-24x24.jpg",24,24,true],"profile_48":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-48x48.jpg",48,48,true],"profile_96":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-96x96.jpg",96,96,true],"profile_150":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-150x150.jpg",150,150,true],"profile_300":["https:\/\/e326.greatsolution.dev\/wp-content\/uploads\/2025\/11\/shutterstock_2561770411-300x300.jpg",300,300,true]},"post_excerpt_stackable_v2":"<p>Schon lange sind f\u00fcr die meisten Entwicklerinnen und Entwickler \u201eUnit-Test\u201c und \u201eTest Driven Development\u201c keine Fremdw\u00f6rter mehr. Dennoch werden diese in der Praxis aus verschiedensten Gr\u00fcnden von nicht allzu vielen Programmiererinnen und Programmierern angewendet. <\/p>\n","category_list_v2":"<a href=\"https:\/\/e326.greatsolution.dev\/en\/category\/mag-25-11\/\" rel=\"category tag\">MAG 25-11<\/a>, <a href=\"https:\/\/e326.greatsolution.dev\/en\/category\/it-management\/\" rel=\"category tag\">IT-Management<\/a>","author_info_v2":{"name":"E3 Magazine","url":"https:\/\/e326.greatsolution.dev\/en\/author\/e3_magazin\/"},"comments_num_v2":"0 comments","_links":{"self":[{"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/posts\/157774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/users\/2368"}],"replies":[{"embeddable":true,"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/comments?post=157774"}],"version-history":[{"count":9,"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/posts\/157774\/revisions"}],"predecessor-version":[{"id":158208,"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/posts\/157774\/revisions\/158208"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/media\/157802"}],"wp:attachment":[{"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/media?parent=157774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/categories?post=157774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/tags?post=157774"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/e326.greatsolution.dev\/en\/wp-json\/wp\/v2\/coauthors?post=157774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}