Workflow in the IDE
The IAR add-on of Testwell CTC++ offers a full integration with IAR Embedded Workbench, for all steps from building to report generation.
Configuration and Build
Use HOTA or BITCOV, and other ctc options.
to configure the coverage level, the usage ofThere are two different ways to perform an instrumented build:
- Use the switch Instrument All Builds, save your settings, and use the IAR project menu commands to trigger the instrumented build.
- Recommended: Save your settings in the dialogue without using that switch. Use instead.
Tests
With the instrumented binaries, execute the tests as usual with IAR Embedded Workbench - on the real target, or in a simulation.
For many targets, the standard implementation of the HOTA runtime library works, especially when the debugger is used for communication. If an adaption is necessary, see Constructing the CTC Runtime for the Target for details.
Coverage Data and Reports
With the default setup for HOTA, only one step is necessary to build reports: Use
to choose the report and to generate it.- Use the memory screen of the IAR debugger to locate
CTC_array
. - Save it to the project directory with file format "intel-extended" and filename memory.hex.
After that, you can continue with
as described for HOTA.