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:
Test Driven Development (TDD) Tip Typically, teams following TDD have Test Configurations for the following scenarios:
In this case, you can set up Test Configuration with nested inclusion: for instance, the sandbox configuration will execute only the tests in dir1, the "continuous integration" configuration will execute tests in dir1 and dir2, then the "overnight testing" configuration will execute tests in dir1, dir2, and dir3. |
If you want to use different tests and/or stubs for different contexts: