Skip to content

ReportGroup

Source: src/AWS/CodeBuild/ReportGroup.ts

An AWS CodeBuild report group — a named collection of test or code-coverage reports produced by builds. A build’s buildspec reports: section uploads its test results into a report group, and the report-read bindings (BatchGetReports, DescribeTestCases, …) let runtime code query them.

Test Report Group

const reports = yield* CodeBuild.ReportGroup("UnitTests", {
type: "TEST",
});

Coverage Group Exported to S3

const coverage = yield* CodeBuild.ReportGroup("Coverage", {
type: "CODE_COVERAGE",
exportConfig: {
exportConfigType: "S3",
s3Destination: { bucket: bucket.bucketName, packaging: "ZIP" },
},
});