Coverage measurement is used as one way to track testing progress and as a completion criterion. C0 (statement) coverage, for example, is the proportion of source-code lines that were executed during testing, out of the total lines measured. However, reaching 100% coverage doesn't mean every combination of inputs has been tested, and it doesn't prove the absence of defects.

1. Why System-Wide Coverage Measurement Is Hard in Embedded Systems

In embedded software, coverage measurement is typically done at the level of individual unit functions (unit testing), but system-wide measurement is rarely performed. The reason is that coverage measurement relies on a technique called instrumentation, which embeds measurement macros into the source code and requires memory to record measurement data — and real embedded hardware, with limited ROM/RAM, makes system-wide coverage measurement difficult.

That said, compared with unit-test-level coverage measurement, system-wide coverage measurement offers real advantages:

  • No need to implement drivers or stubs, making test setup simpler
  • Enables more combination testing with less effort than unit testing
  • Because multiple functions call each other as real functions rather than stubs, testing more closely resembles actual runtime behavior

2. Using a Coverage Tool Suited to Embedded Systems

Testwell CTC++, from Germany's Verifysoft Technology and sold in Japan by Ubiquitous AI, is a coverage-measurement tool capable of measuring system-wide coverage even in environments with limited ROM/RAM. Using Testwell CTC++, system-wide coverage measurement becomes achievable even in embedded systems with tight memory constraints.


Coverage Measurement Report (Coverage Rate)


Coverage Measurement Report (Uncovered Code)

3. Automatically Detecting Runtime Errors with Automated Exhaustive Testing

GSIL, sold by Ubiquitous AI, includes an automated exhaustive testing capability. By testing an enormous number of input combinations that would be impossible to create by hand, it automatically catches hard-to-find runtime errors such as division by zero and buffer overruns, improving system reliability. Applying this capability alongside Testwell CTC++ makes it possible to reach high coverage without ever having to write test cases by hand.

Automated Comprehensive Testing

Testwell CTC++ supports instrumentation, test execution, and coverage-data processing from the console, making CI/CD straightforward to implement.

CI/CD Implementation Example

4. Summary

As described here, using Testwell CTC++ for coverage measurement in embedded control software systems reduces test-preparation effort, improves reliability, and makes CI/CD easy to implement. If you're interested, please get in touch using the button below — we'd be happy to explain Testwell CTC++ in more detail.

Author
Hiroshi Ueda

Ubiquitous AI Corporation

Embedded Business Unit 3, Deputy General Manager

Hiroshi Ueda

After university, Ueda joined a Tier 1 supplier and worked on ECU software development. He later worked overseas as an embedded software development engineer before returning to Japan, where he has been engaged in technical sales for automotive software since 1998. Drawing on his own experience, he sources overseas software products that help solve customers' development challenges and delivers them to engineers in Japan.

Related Insights

Get in Touch

For more details on GSIL

Contact Us

Want to learn more about GSIL or have challenges in automotive ECU software development?

Try GSIL for Free

Try GSIL for Free

We offer a free trial for corporations, including training and setup support.

Back to Product Page