Skip to content

Latest commit

 

History

History

task_006_codebuild_codecommit_test_reports_gradle

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Codebuild Codecommit Gradle Project Unit Tests Reports

docs.aws.amazon.com » Create a test report

Test Reports with AWS CodeBuild

docs.aws.amazon.com » Working with reports

docs.aws.amazon.com » View test reports

docs.gradle.org » Test reporting

Create a repository in CodeCommit : repo-d

Create a codebuild project : repo-d

Use the buildspec.yml file in the root of the project. Make sure you give the right path to the test reports in the buildspec.yml file. The files get generated in the project in directory build/test-results.

Trigger build manually using Start build button.

reports:
  GradleReports:
    files:
      - '**/*.xml'
    base-directory: 'build/test-results'

Go to the Report Groups section

You should see repo-d-GradleReports group.

aws cli » list-report-groups stackoverflow » turn off pager

AWS_PAGER="" aws codebuild list-report-groups 

Get the reports

AWS_PAGER="" aws codebuild list-reports-for-report-group --report-group-arn <>