Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Reports with AWS CodeBuild #12178

Closed
rubytobi opened this issue Feb 26, 2020 · 3 comments · Fixed by #12573
Closed

Test Reports with AWS CodeBuild #12178

rubytobi opened this issue Feb 26, 2020 · 3 comments · Fixed by #12573
Assignees
Labels
new-resource Introduces a new resource. service/codebuild Issues and PRs that pertain to the codebuild service.
Milestone

Comments

@rubytobi
Copy link

rubytobi commented Feb 26, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

AWS extended the Codebuild Service with new functionality: Test Reports
The Report Groups can be populated form within a build by exporting JUnit or Cucumber test reports. Also, these reports can be persisted to S3 if specified on the Report Group.

"AWS CodeBuild announced the launch of a new feature in CodeBuild called Reports. This feature allows you to view the reports generated by functional or integration tests. The reports can be in the JUnit XML or Cucumber JSON format. You can view metrics such as Pass Rate %, Test Run Duration, and number of Passed versus Failed/Error test cases in one location. Builders can use any testing frameworks as long as the reports are generated in the supported formats.
You can see the test reports created by CodeBuild in the respective Report Group, where they are stored for 30 days. For longer retention, you can store the reports in an Amazon S3 bucket. Each test report is further broken down by individual test cases."

Also, boto3 already supports the new functionality.

New or Affected Resource(s)

  • aws_codebuild_reportgroup

Potential Terraform Configuration

resource aws_codebuild_reportgroup sample {
 name = "my-report-group"
 type = "TEST"
 exportConfig = {
  exportConfigType: "S3" | "NO_EXPORT"
  s3Destination: {
   bucket: "my-bucket"
   path: "my-custom-prefix"
   packaging: "ZIP" | "NONE"
   encryptionKey: "my-kms-key"
   encryptionDisabled: True | False
   }
  }
}

References

https://aws.amazon.com/blogs/devops/test-reports-with-aws-codebuild/
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/codebuild.html

@rubytobi rubytobi added the enhancement Requests to existing resources that expand the functionality or scope. label Feb 26, 2020
@ghost ghost added the service/codebuild Issues and PRs that pertain to the codebuild service. label Feb 26, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Feb 26, 2020
@bflad bflad added new-resource Introduces a new resource. and removed enhancement Requests to existing resources that expand the functionality or scope. needs-triage Waiting for first response or review from a maintainer. labels Aug 28, 2020
@bflad bflad self-assigned this Aug 28, 2020
@bflad bflad added this to the v3.5.0 milestone Aug 28, 2020
@bflad
Copy link
Contributor

bflad commented Aug 28, 2020

The new aws_codebuild_report_group resource has been merged and will release with version 3.5.0 of the Terraform AWS Provider, later next week. Thanks to @DrFaust92 for the implementation. 👍

@ghost
Copy link

ghost commented Sep 3, 2020

This has been released in version 3.5.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Sep 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new-resource Introduces a new resource. service/codebuild Issues and PRs that pertain to the codebuild service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants