Explore chapters and articles related to this topic
Review of battery powered embedded systems design for mission-critical low-power applications
Published in International Journal of Electronics, 2018
Matthew Malewski, David M. J. Cowell, Steven Freear
Estimates of the number of defects in code made commercially available is approximately 10–50 defects per thousand lines of code (Ebert, 2009; Microsoft (S.McConnel)). The code coverage provided by tests is directly linked to defect discovery. It is therefore important that unit tests cover at least 80% of the code (Frate, Garg, Mathur, & Pasquini, 1995). Typically, an embedded system will exercise a small percentage of code during normal operation, making it difficult to be able to have large code coverage by simply operating in normal conditions. This is especially true with error-checking, where the majority of the time these segments are unused. It is important to inject incorrect data during testing to ensure the system handles and recognises errors correctly. This testing greatly increases the development time of software.