This section covers both Unit Testing and Application Monitoring.

Environment-Specific Configuration

Before using C++test test configurations dedicated to work with TASKING standalone debugger dbgtc, adjust them as follows:

  • Add the debugger executable (dbgtc.exe) to the PATH environment variable—or modify the test configuration's "Test execution flow" by changing the test flow step with id "run_tests" to reference the debugger executable by a full path.
  • Prepare a simulator configuration files for memory and devices: MConfig and DConfig. If these files are required to properly conduct the simulation, place them directly into the project folder. The C++test-provided test configurations will handle them appropriately.
  • The default configuration is not appropriate for some target architectures, so the TASKING standalone dbgtc.exe debugger may require a .dcf configuration file. When a .dcf configuration file is necessary, the configuration should be passed to dbgtc.exe through its -c option. Users may adjust the appropriate test execution flow property in the Execution tab for built-in test configurations.

Unit Testing

The following test configuration is provided to facilitate the unit testing process:

Embedded Systems> Altium> Run Altium TASKING CTC Tests

To run unit testing on the target or a simulator:

  1. Manually create or automatically generate a set of test cases.
  2. Duplicate one of the Altium TASKING Test Configurations.
  3. Modify the Test Configuration as needed. See Environment-Specific Configuration for details.
  4. Select the desired testing context.
  5. Run tests with the customized Test Configuration created above.

Debugging Test Cases

C++test does not support direct Test Cases debugging for this environment. Use appropriate Debug/Launch Configuration for your original/tested project to load Test Executable and set breakpoints on wanted Test Cases manually.

Application Monitoring

The following test configuration is provided to facilitate the application monitoring process:

Embedded Systems> Altium> Run Altium TASKING CTC Application with Mem Monitoring

To run application monitoring on the target:

  1. Duplicate one of the Altium TASKING Application Monitoring Test Configurations.
  2. Modify the Test Configuration as needed. See Environment-Specific Configuration for details.
  3. Select the desired testing context.
  4. Run tests with the customized Test Configuration created above.
  • No labels