빌드 프로젝트의 buildspec 파일에서 reports
섹션에 있는 각 보고서 그룹에 대한 테스트 결과 파일 및 해당 위치를 지정합니다. 자세한 내용은 Reports syntax in the buildspec file 단원을 참조하십시오.
다음은 빌드 프로젝트에 대해 두 개의 보고서 그룹을 지정하는 샘플 reports
섹션입니다. 하나는 ARN으로 지정되고 다른 하나는 이름으로 지정됩니다. 이 files
섹션에서는 테스트 케이스 결과를 포함하는 파일을 지정합니다. 선택 사항인 base-directory
섹션에서는 테스트 케이스 파일이 있는 디렉터리를 지정합니다. 선택 사항인 discard-paths
섹션에서는 Amazon S3 버킷에 업로드된 테스트 결과 파일의 경로를 무시할지 여부를 지정합니다.
reports:
arn:aws:codebuild:your-region:your-aws-account-id:report-group/report-group-name-1: #surefire junit reports
files:
- '**/*'
base-directory: 'surefire/target/surefire-reports'
discard-paths: false
sampleReportGroup: #Cucumber reports from json plugin
files:
- 'cucumber-json/target/cucumber-json-report.json'
file-format: CUCUMBERJSON #Type of the report, defaults to JUNITXML