# test ## Description Performs contract tests on the handlers of a resource type\. ## Synopsis ``` cfn test [--endpoint ] [--function-name ] [--profile ] [--region ] [--role-arn ] ``` ## Options `--endpoint ` The endpoint at which the type can be invoked\. Alternately, you can also specify an actual Lambda endpoint and function name in your AWS account\. Default: `http://127.0.0.1.3001` `--function-name ` The logical Lambda function name in the SAM template\. Alternately, you can also specify an actual Lambda endpoint and function name in your AWS account\. Default: `TestEntrypoint` `--profile ` The AWS profile to use\. If no profile is specified, the contract tests apply credentials specified in the [Boto3 credentials chain](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html)\. `--region ` The region to use for temporary credentials\. Default: `us-east-1` `--role-arn ` The Amazon Resource Name \(ARN\) of the IAM execution role for the contract tests to assume and use when performing operations\. If you don't specify an execution role, the contract tests use the environment credentials or the credentials specified in the [Boto3 credentials chain](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html)\. ## Output