Skip to main content
TESSY Unit Testing for Embedded C/C++: MC/DC Coverage, ISO 26262 Qualification, and CI/CD Integration, featured image

TESSY Unit Testing for Embedded C/C++: MC/DC Coverage, ISO 26262 Qualification, and CI/CD Integration

GSAS Engineering · · 4 min read

TESSY Unit Testing for Embedded C/C++: MC/DC Coverage, ISO 26262 Qualification, and CI/CD Integration

Unit testing embedded software is fundamentally different from unit testing a web application or a desktop service. The code runs on resource-constrained microcontrollers. The functions interact with hardware registers, DMA buffers, and interrupt service routines. The test harness must either run on the target hardware or simulate it faithfully enough that the coverage results are meaningful to a safety assessor.

TESSY, developed by Hitex GmbH, is a dedicated dynamic testing tool built specifically for this problem space. It automates unit, module, and integration testing of embedded C and C++ code, with full support for the coverage metrics that ISO 26262, IEC 61508, DO-178C, and IEC 62279 require.

What TESSY Automates

The three most time-consuming tasks in embedded unit testing are interface analysis, test driver generation, and stub creation. TESSY automates all three.

Interface analysis. TESSY parses the function signature, parameters, return types, global variables accessed, pointers to structures, and presents the complete interface in a test editor. Engineers do not manually trace which globals a function reads or writes. TESSY determines this automatically from the source code.

Test driver generation. For each function under test, TESSY generates a harness that sets up the input conditions, calls the function, and captures the outputs. This harness compiles against the project’s actual toolchain (GCC, IAR, Keil, Green Hills, HighTec, TASKING), so the generated code runs the same compiler optimizations and calling conventions as the production build.

Stub creation. Functions called by the unit under test are replaced with controllable stubs. Engineers define stub return values and side effects per test case, isolating the unit from its dependencies. TESSY generates the stub framework; engineers fill in the behavior.

Coverage Metrics for Safety Certification

TESSY measures statement, branch, decision, MC/DC (Modified Condition/Decision Coverage), and MCC (Modified Condition Combination) coverage. For ISO 26262 ASIL D, MC/DC is the required structural coverage metric at the unit level. For ASIL A and B, branch coverage may suffice, but many Indian automotive teams target MC/DC across all ASIL levels to simplify their safety argument.

Coverage results are displayed graphically, green for covered, red for uncovered, and exported as HTML or PDF reports suitable for inclusion in a safety case. The reports include the mapping between test cases and requirements, satisfying the bidirectional traceability requirement of ISO 26262 Part 6 Table 9.

Classification Tree Editor for Systematic Test Design

TESSY includes a Classification Tree Editor (CTE), a graphical tool for systematic test case design based on equivalence partitioning and boundary value analysis. Engineers define input classifications (valid ranges, boundary values, error conditions) visually, and TESSY generates the corresponding test vectors.

This is not just a convenience feature. ISO 26262 Part 6 Table 10 recommends systematic test design methods for ASIL C and D. The CTE provides an auditable, traceable approach that satisfies this recommendation. Assessors can see the rationale behind each test case, not just the results.

CI/CD Integration

TESSY supports batch execution via command line, which means test suites run unattended in Jenkins, GitLab CI, Azure DevOps, or GitHub Actions pipelines. The typical workflow:

  1. Developer pushes code to the repository
  2. CI pipeline triggers a TESSY batch run
  3. TESSY re-runs all affected test suites
  4. Coverage reports are generated and archived as build artifacts
  5. A quality gate checks that coverage thresholds are met, if not, the pipeline fails

This regression testing model catches regressions the same day they are introduced. On safety-critical projects, where a single missed regression can cascade into months of re-verification, this automation is not optional, it is an engineering necessity.

Requirements Traceability with ReqIF

TESSY imports and exports requirements in ReqIF (Requirements Interchange Format), the OMG standard used by IBM DOORS, Polarion, codebeamer, and Siemens Teamcenter. Test cases link to requirements for bidirectional traceability: from requirement to test case (forward) and from test case to requirement (backward).

For ISO 26262 ASIL C and D projects, this traceability is mandatory. During a safety assessment, the assessor will ask: “Show me which test cases verify requirement X, and show me which requirements are covered by test case Y.” TESSY generates this matrix automatically.

Tool Qualification

TESSY is qualified as a software tool for safety-critical development according to ISO 26262, IEC 61508, DO-178C, and IEC 62279. Hitex provides a Tool Qualification Support Package that includes the tool classification, validation suite, and documentation required by your safety assessor. This package reduces the tool qualification effort from months to days, a significant schedule advantage for Indian teams facing tight certification timelines.

Why Buy from GSAS

GSAS Micro Systems is India’s authorized Hitex partner, providing TESSY licensing with INR invoicing, onboarding workshops, CI/CD integration consulting, and ongoing technical support. Our functional safety engineers in Bengaluru, Hyderabad, Chennai, Pune, Mumbai, and Delhi NCR work directly with automotive, aerospace, and industrial teams to deploy TESSY into existing development workflows, from initial tool evaluation through production-grade CI/CD pipeline integration. Whether your team is targeting ISO 26262 for an AURIX-based ECU or IEC 61508 for an industrial safety controller, GSAS provides the tooling and the expertise to get your unit testing infrastructure production-ready.

Request a TESSY evaluation →

Interested in Razorcat tools?

Talk to our application engineers for personalized tool recommendations.

Stay in the Loop

Get monthly compliance updates, product insights, and engineering best practices delivered to your inbox.