Skip to content
v2.275.0

ReportGroupType Enum ​

The type of reports in the report group.

Example ​

ts
declare const source: codebuild.Source;

// create a new ReportGroup
const reportGroup = new codebuild.ReportGroup(this, 'ReportGroup', {
    type: codebuild.ReportGroupType.CODE_COVERAGE
});

const project = new codebuild.Project(this, 'Project', {
  source,
  buildSpec: codebuild.BuildSpec.fromObject({
    // ...
    reports: {
      [reportGroup.reportGroupArn]: {
        files: '**/*',
        'base-directory': 'build/coverage-report.xml',
        'file-format': 'JACOCOXML'
      },
    },
  }),
});

Members ​

MemberDescription
TESTThe report group contains test reports.
CODE_COVERAGEThe report group contains code coverage reports.

Referenced by ​