[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-505968-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-505968-en":130,"doc-similar-505968":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","streamlining-unit-testing-for-embedded-and-safety-critical-systems","Streamlining Unit Testing for Embedded and Safety Critical Systems","","Streamlining Unit Testing for Embedded and Safety Critical Systems explains how disciplined unit testing improves development speed, quality, and risk reduction, while meeting the verification and validation needs of safety-critical software. It addresses why unit testing becomes costly when teams rely on manual, engineer-only test development, and proposes scalable approaches that expand contribution across the organization. The paper highlights automation with IDE-integrated tools, source-based test artifacts, component isolation via stubs or mocks, and reliable execution on intended embedded targets.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/streamlining-unit-testing-for-embedded-and-safety-critical-systems/505968/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/streamlining-unit-testing-for-embedded-and-safety-critical-systems/505968.png","ImageObject",300,407,{"name":42,"@type":43},"Muffet","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-10-04",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why is unit testing especially important for safety critical systems?","Question",{"text":63,"@type":64},"Unit testing is required to qualify software for intended use, and it serves as a cornerstone of safety and security verification and validation.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What problem does manual unit test creation cause?",{"text":68,"@type":64},"Manual creation is time-consuming and resource-intensive, typically requiring programmers to design, develop, and maintain fragile tests that are vulnerable to software changes.",{"name":70,"@type":61,"acceptedAnswer":71},"How does the approach improve isolation during unit testing?",{"text":72,"@type":64},"By isolating the unit from external dependencies using stubs or mocks (test doubles), so results reflect issues in the unit rather than hidden problems in dependencies.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},505968,1792188659,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":55,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":115,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":143,"read_time":144,"preview_page_count":33,"preview_urls":145},962090768927,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Technical Whitepaper  \nStreamlining Unit Testing for Embedded and Safety Critical Systems  \nINTRODUCTION  \nUnit testing is a fundamental software practice and, if done correctly, can increase the speed and quality of software development while simultaneously reducing risk and overall costs. In safety critical systems, unit testing is not only required to qualify software for intended use, but it’s also a cornerstone of safety and security verification and validation.  \nUnfortunately, unit testing is expensive in terms of time and resources. Traditionally, someone with programming expertise is required  \nto design, develop, and maintain unit tests. These unit tests, once written, are also fragile to changes in the software, and maintenance burdens the project as a whole.  \nThis paper outlines the key elements needed to successfully address unit testing in a way that is scalable across the entire project and organization, enabling more of the software team as a whole to contribute to the unit tests – not only the engineers.  \n\n| Changed |  | Test |\n| --- | --- | --- |\n|  |  |  |\n| 26 |  | % Passing |\n| 3 |  | \\# Tests |\n| 63 |  | \\# Failed Tests |\n| 89  |  | \\# Incomplete |\n\nChange Based Testing  \nPass  \n Fail  \n Incomplete  \n Retest  \nIT STARTS WITH TEST CREATION  \nWhen done without the assistance of automation tools, unit test creation is a tedious and timeconsuming process. The unit tests must be coded by software engineers familiar with both the unit under test and the complete development and execution environment. Test automation tools, such as Parasoft C/C++test, reduce this complexity by integrating directly into the developers’ IDE (such as Visual Studio or Eclipse-based IDEs) and providing a framework for unit testing that aids with creation and execution of automated unit tests.  \nOne of the challenges when adopting an automation tool in support of unit testing is the mix of skills and preferences of the team members. Some team members will want to go deep and direct to the code (some without using an IDE), while others will want to stay at a higher level, focusing on test logic and parameterization. The solution is to use convenient graphical editors and views, along with source code based representations of the test artifacts, such as test cases and stubs.  \nThis process enables experienced developers to quickly build their test cases using source codebased APIs, while others team members (such as test/QA engineers) can augment the process of test creation with graphical editors. Parasoft C/C++test provides a test editor that captures UI interactions and creates source tests that can be persisted at source or maintained as UI driven tests, allowing the team to determine the best way to create, augment, and maintain tests.  \n2  \nThere are advantages to having test cases stored as source code, and values for the tested code parameters initialized in the source code. This strategy is much closer to the process of parameter initialization in the production code, which makes it better suited for testing safety critical code, especially in embedded devices. In many embedded development projects, test artifacts need to be as close as possible to the code that is going tobe run on the device and run on the intended target, rather than host-based testing alone.  \nISOLATING COMPONENTS TO IMPROVE AUTOMATION  \nUnit tests require much more than just a harness to execute and retrieve results from the unit under test. In fact, the trickiest part is isolating a unit from its external dependencies so that only the unit itself is being tested. This  \n© 2018 Parasoft Corporation  \n3  \nmakes it easier to have stable automation, and, when a problem is found, we know the problem is in the unit and not somewhere hidden in one of its dependencies. Stubs or mocks (sometimes called test doubles) are used for unit isolation but programming and controlling the response from stubs can become complicated.  \nThe difficulty of stubbing the tested ","cbCaioKyQXr5thd7","https://ap.wps.com/l/cbCaioKyQXr5thd7","pdf",1108068,"English","# Introduction\n# Change Based Testing\n# Test Creation with Automation Tools\n## Adapting to Team Skill Mix\n# Isolating Components to Improve Automation\n## Flexible Stubbing Options\n# Test Execution","[{\"question\":\"Why is unit testing especially important for safety critical systems?\",\"answer\":\"Unit testing is required to qualify software for intended use, and it serves as a cornerstone of safety and security verification and validation.\"},{\"question\":\"What problem does manual unit test creation cause?\",\"answer\":\"Manual creation is time-consuming and resource-intensive, typically requiring programmers to design, develop, and maintain fragile tests that are vulnerable to software changes.\"},{\"question\":\"How does the approach improve isolation during unit testing?\",\"answer\":\"By isolating the unit from external dependencies using stubs or mocks (test doubles), so results reflect issues in the unit rather than hidden problems in dependencies.\"}]","Streamlining Unit Testing for Embedded and Safety Critical Systems | PDF",1791156221,23,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e96ca1fbf5b6855f7ccf1c67fc6149ce.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/2d5d5a507f35ac310c0cbac12872aae0.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/f630ba1d0ee072df6bf8f444b9b68584.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d0dff05cb853b550c75816b464695a8a.webp",980,1268,{"list":163,"token":11},[164,170,176,183,190,196,202,208,214,220],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":33,"category_name":29,"create_tm":169},701154,"Les25 - Introduction to unit testing - Unit Testing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012051900/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796275319&Signature=msRKXnv4pKOWntDEWxQD7idAoAw%3D","les25-introduction-to-unit-testing-unit-testing",1794523810,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":26,"category_name":29,"create_tm":175},677467,"Field Team Onboarding Guide - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229993742348/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796275319&Signature=EoTK48ubG5e2avvZNwkB6834rLY%3D","field-team-onboarding-guide-introduction",1793778595,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":29,"create_tm":182},119786,"Developing a Wireless Distributed Embedded Machine Learning Application for the Arduino Portenta H7 - Thesis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835075888/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796275319&Signature=rWzPw1BTEKX9C8IRiIG1FMd1tqw%3D","developing-a-wireless-distributed-embedded-machine-learning-application-for-the-arduino-portenta-h7-thesis",18,1785726303,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":29,"create_tm":189},117928,"Machine Learning for Microcontroller Performance Screening - 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834592059/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796275319&Signature=3y6KtjD5nhtbuYhsbRKynx47hwI%3D","machine-learning-for-microcontroller-performance-screening-2023",16,1785680407,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":55,"category_name":29,"create_tm":195},700410,"UDE® Universal Debug Engine - Integrated Development Environment for Embedded Systems - Debugging, Trace and Test","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012025344/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796275319&Signature=ATtuQ2DJsTZbHrjVAfZP%2FkAsgtY%3D","ude-universal-debug-engine-integrated-development-environment-for-embedded-systems-debugging-trace-and-test",1794518629,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":110,"category_name":29,"create_tm":201},696688,"MPLAB Harmony Integrated Software Framework - v1.11 - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009773866/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796275319&Signature=fooAq6c4mM3XSEeQv7NpsQDlErE%3D","mplab-harmony-integrated-software-framework-v111-overview",1794434390,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":26,"category_name":29,"create_tm":207},700631,"Professional Windows Embedded CE 6.0 - Chapter-based overview - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012031187/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796275319&Signature=A7tzqsh9T8nPawiBBik6%2Fo8fHQ8%3D","professional-windows-embedded-ce-60-chapter-based-overview-introduction",1794519707,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":55,"category_name":29,"create_tm":213},701158,"JUnit Tutorial - Beginner Guide - Java Unit Testing Framework","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012051946/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796275319&Signature=USEXBdgHWQWoqmXc4TBZl3vMErY%3D","junit-tutorial-beginner-guide-java-unit-testing-framework",1794523817,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":188,"category_name":29,"create_tm":219},391274,"Embedded Systems Design - Lecture Notes - Unit-wise Syllabus and Course Objectives","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917373748/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796275319&Signature=iDqzleVXABnswB7s8QK%2FQxjcPXY%3D","embedded-systems-design-lecture-notes-unit-wise-syllabus-and-course-objectives",1790350884,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":188,"category_name":29,"create_tm":225},391844,"Principal Site Reliability Engineer Interview Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917408726/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796275319&Signature=dkxb5AgL9rRiRsYUmqrUdNeQ23w%3D","principal-site-reliability-engineer-interview-guide",1790359433]