If you want to use different test cases and/or stubs for different testing contexts, you can create a different set of test cases and/or stubs for each testing context, then create a Test Configuration that uses each set of test cases and/or stubs. This is helpful in a number of situations; for example:
- If you want to use one set of tests and stubs when testing on the host system and another set when testing on the target device).
- If you want team members to perform fast "sanity checks" on the developer workstation, then have C++test server run a comprehensive regression test on the entire code base each night.
If you want to use different tests and/or stubs for different contexts:
- Store each set of test cases and stubs in a separate directory.
- Create one Test Configuration for each testing context, and configure it to use the appropriate set of test cases and stubs for the given context.
- The test case location is specified in the Execution> General tab’s Test suite location patterns field.
- The stub location is specified in the Execution> Symbols tab’s Use extra symbols from files found in field.