Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Specify test files

Focus mode
Specify test files - AWS CodeBuild

You specify the test result files and their location for each report group in the reports section of your build project's buildspec file. For more information, see Reports syntax in the buildspec file.

The following is a sample reports section that specifies two report groups for a build project. One is specified with its ARN, the other with a name. The files section specifies the files that contain the test case results. The optional base-directory section specifies the directory where the test case files are located. The optional discard-paths section specifies whether paths to test result files uploaded to an Amazon S3 bucket are discarded.

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
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.