CmdID / aws / aws codebuild
aws codebuild describe-test-cases
Returns a list of details about test cases for a report. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To get detailed information about test cases in AWS CodeBuild.
The following describe-test-cases example gets information about the test cases in the specified report.
aws codebuild describe-test-cases --report-arn arn:aws:codebuild:<region-ID>:<account-ID>:report/<report-group-name>:<report-ID>Identify--report-arnThe ARN of the report for which test cases are returned.Its output
{
"testCases": [
{
"reportArn": "arn:aws:codebuild:<region-ID>:<account-ID>:report/<report-group-name>:<report-ID>",
"testRawDataPath": "<test-report-path>",
"prefix": "NUnit.Tests.Assemblies.MockTestFixture",
"name": "NUnit.Tests.Assemblies.MockTestFixture.NotRunnableTest",
"status": "ERROR",
"durationInNanoSeconds": 0,
"message": "No arguments were provided\n",
"expired": "2020-11-20T17:52:10+00:00"
},
{
"reportArn": "arn:aws:codebuild:<region-ID>:<account-ID>:report/<report-group-name>:<report-ID>",
"testRawDataPath": "<test-report-path>",
"prefix": "NUnit.Tests.Assemblies.MockTestFixture",
"name": "NUnit.Tests.Assemblies.MockTestFixture.TestWithException",
"status": "ERROR",
"durationInNanoSeconds": 0,
"message": "System.ApplicationException : Intentional Exception\nat NUnit.Tests.Assemblies.MockTestFixture.MethodThrowsException()\nat NUnit.Tests.Assemblies.MockTestFixture.TestWithException()\n\n",
"expired": "2020-11-20T17:52:10+00:00"
}
]
}For more information, see Working with test reporting in AWS CodeBuild in the AWS CodeBuild User Guide.
Options
--filterA TestCaseFilter object used to filter the returned reports.--max-resultsThe maximum number of paginated test cases returned per response.--next-tokenDuring a previous call, the maximum number of items that can be returned is the value specified in maxResults.--report-arnThe ARN of the report for which test cases are returned.