Create a report group (buildspec)
A report group created using the buildspec does not export raw test result files. You can view your report group and specify export settings. For more information, see Update a report group.
To create a report group using a buildspec file
-
Choose a report group name that is not associated with a report group in your Amazon account.
-
Configure the
reports
section of the buildspec file with this name. In this example, the report group name isnew-report-group
and the use test cases are created with the JUnit framework:reports: new-report-group: #surefire junit reports files: - '**/*' base-directory: 'surefire/target/surefire-reports'
For more information, see Specify test files and Reports syntax in the buildspec file.
-
In the
commands
section, specify the command to run your tests. For more information, see Specify test commands . -
Run the build. When the build is complete, a new report group is created with a name that uses the format
project-name-report-group-name
. For more information, see Report group naming.