本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
識別共用報告群組
擁有者和取用者可以使用 AWS CLI 來識別共用報告群組。
若要識別並取得共用報告群組及其報告的資訊,請使用下列命令:
-
若要查看與您共用ARNs的報告群組的 ,請執行
list-shared-report-groups
:aws codebuild list-shared-report-groups
-
若要查看ARNs報告群組中報告的 ,
list-reports-for-report-group
請使用報告群組 執行ARN:aws codebuild list-reports-for-report-group --report-group-arn
report-group-arn
-
若要查看報告中測試案例的相關資訊,
describe-test-cases
請使用報告 執行ARN:aws codebuild describe-test-cases --report-arn
report-arn
輸出看起來如下:
{ "testCases": [ { "status": "FAILED", "name": "Test case 1", "expired": 1575916770.0, "reportArn": "
report-arn
", "prefix": "Cucumber tests for agent", "message": "A test message", "durationInNanoSeconds": 1540540, "testRawDataPath": "path-to-output-report-files" }, { "status": "SUCCEEDED", "name": "Test case 2", "expired": 1575916770.0, "reportArn": "report-arn
", "prefix": "Cucumber tests for agent", "message": "A test message", "durationInNanoSeconds": 1540540, "testRawDataPath": "path-to-output-report-files" } ] }