Recommended, but hard to set up
Standards ask for back-to-back testing, yet a working harness for model and generated code takes real effort to stand up.
Show that the generated production code behaves like the model — automatically, for Simulink, dSPACE TargetLink and MathWorks Embedded Coder.
Back-to-back testing is recommended by ISO 26262 and related functional-safety standards. The question it answers is simple — does the generated code behave like the model? Getting to that answer by hand is not.
Standards ask for back-to-back testing, yet a working harness for model and generated code takes real effort to stand up.
Generating enough stimulus and comparing outputs across many subsystems is slow, repetitive, manual work.
Change the model and you re-generate, re-run and re-compare both sides — a full cycle, on every iteration.
BTC TestStack runs the back-to-back test between model (MIL) and production code (SIL/PIL) automatically within one single test project. It extracts the architecture from dSPACE TargetLink and MathWorks Embedded Coder, generates the test cases, runs both sides and reports the comparison — no manual harness, no hand-written test data.
BTC TestStack reads the model and code architecture straight from TargetLink and Embedded Coder — no harness to wire up by hand.
For large models, test harness models are generated automatically, so even deep hierarchies run without setup.
Runs headless in your CI, with a versatile REST API orchestrating BTC TestStack either running in a virtual machine, a Linux Docker container or BTC TestStack × Cloud in AWS.
Interfaces and subsystem hierarchy read directly from the model.
Automatic test generation for 100% structural coverage incl. MC/DC.
Outputs matched sample-by-sample within defined tolerances.
HTML report highlighting any sample where code diverges from model.
The test cases that drive a back-to-back run aren't guessed at random. BTC TestStack uses model checking to generate the smallest set that reaches every coverage objective — and to show which objectives can't be reached.
Model checking derives test cases from the structure itself, so 100% coverage is reached by construction rather than by chance.
The fewest and shortest test cases that still meet every objective — less to run, less to review.
A dynamic analysis distinguishes an unreachable objective from one that is simply untested — so a gap is explained, not just flagged.
Direct access to inputs and calibrations surfaces behaviour that requirement-driven functional tests can miss.
| Test case | Model (MIL) | Code (SIL) | Max Δ | Result |
|---|---|---|---|---|
| TC_01 | 142.80 | 142.80 | 0.0e0 | Match |
| TC_02 | RUN | RUN | — | Match |
| TC_03 | 0.0491 | 0.0491 | 2.1e-7 | Match |
| TC_04 | 88.20 | 88.21 | 1.0e-2 | Difference |
| TC_05 | -1.000 | -1.000 | 0.0e0 | Match |
Back-to-back, regression and migration testing all run on the same BTC TestStack engine — automatic model-checking test generation plus structural comparison.
“Did a change break anything?”
Shows the software still behaves as intended after a change — at model level (MIL) or code level (SIL/PIL). Push-button execution, HTML reporting.
“Did a tool upgrade change behaviour?”
Shows a new tool version — code generator, compiler, modeling tool or OS — leaves behaviour unchanged. Jenkins runs the workflow across tool versions and operating systems.
is ISO 26262 certified
The certificate addresses functional-safety standards across multiple industries:
For ISO 26262, BTC TestStack is certified with the highest Tool Confidence Level (TCL), valid for all ASIL levels including ASIL D. We provide the certificate and report to customers free of charge on request — removing most tool-qualification effort on the customer side.
Requirements-based testing for Simulink, TargetLink, Embedded Coder, handwritten and AI-generated code.
In BTC TestStack, code coverage is automatically calculated and updated in the background.
The power of proof for safety-critical systems.
Tell us where your engineering problem actually is. We'll tell you whether an evaluation license, a workshop, or a conversation is the right next step.