Interface TestOptions
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
TestCase
- All Known Implementing Classes:
TestCase.Jsii$Proxy,TestOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)", date="2025-11-06T20:25:05.800Z") @Stability(Stable) public interface TestOptions extends software.amazon.jsii.JsiiSerializable
The set of options to control the workflow of the test runner.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTestOptions.BuilderA builder forTestOptionsstatic classTestOptions.Jsii$ProxyAn implementation forTestOptions
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static TestOptions.Builderbuilder()default List<String>getAllowDestroy()List of CloudFormation resource types in this stack that can be destroyed as part of an update without failing the test.default CdkCommandsgetCdkCommandOptions()Additional options to use for each CDK command.default BooleangetDiffAssets()Whether or not to include asset hashes in the diff Asset hashes can introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes should be included.default HooksgetHooks()Additional commands to run at predefined points in the test workflow.default List<String>getRegions()Limit deployment to these regions.default BooleangetStackUpdateWorkflow()Run update workflow on this test case This should only be set to false to test scenarios that are not possible to test as part of the update workflow.
-
-
-
Method Detail
-
getAllowDestroy
@Stability(Stable) @Nullable default List<String> getAllowDestroy()
List of CloudFormation resource types in this stack that can be destroyed as part of an update without failing the test.This list should only include resources that for this specific integration test we are sure will not cause errors or an outage if destroyed. For example, maybe we know that a new resource will be created first before the old resource is destroyed which prevents any outage.
e.g. ['AWS::IAM::Role']
Default: - do not allow destruction of any resources on update
-
getCdkCommandOptions
@Stability(Stable) @Nullable default CdkCommands getCdkCommandOptions()
Additional options to use for each CDK command.Default: - runner default options
-
getDiffAssets
@Stability(Stable) @Nullable default Boolean getDiffAssets()
Whether or not to include asset hashes in the diff Asset hashes can introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes should be included.For example any tests involving custom resources or bundling
Default: false
-
getHooks
@Stability(Stable) @Nullable default Hooks getHooks()
Additional commands to run at predefined points in the test workflow.e.g. { postDeploy: ['yarn', 'test'] }
Default: - no hooks
-
getRegions
@Stability(Stable) @Nullable default List<String> getRegions()
Limit deployment to these regions.Default: - can run in any region
-
getStackUpdateWorkflow
@Stability(Stable) @Nullable default Boolean getStackUpdateWorkflow()
Run update workflow on this test case This should only be set to false to test scenarios that are not possible to test as part of the update workflow.Default: true
-
builder
@Stability(Stable) static TestOptions.Builder builder()
- Returns:
- a
TestOptions.BuilderofTestOptions
-
-