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

feat(coverage): supports a new bash script #5205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lance52259
Copy link
Collaborator

What this PR does / why we need it:

New script supported for function coverage tests.
image

Which issue this PR fixes:
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)
fixes #xxx

Special notes for your reviewer:

Release note:

1. supports a new bash script to test the function's coverage.

PR Checklist

  • Tests added/passed.
scripts/coverage.sh -o asm
Prepare to calculate the coverage the following command:
TF_ACC=1 go test "./huaweicloud/services/acceptance/asm" -v -coverprofile="./huaweicloud/services/acceptance/asm/asm_coverage.cov" -coverpkg="./huaweicloud/services/asm" -run TestAcc -timeout 360m -parallel 5
=== RUN   TestAccResourceAsmMesh_basic
=== PAUSE TestAccResourceAsmMesh_basic
=== CONT  TestAccResourceAsmMesh_basic
--- PASS: TestAccResourceAsmMesh_basic (888.29s)
PASS
coverage: 78.0% of statements in ./huaweicloud/services/asm
ok      github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/acceptance/asm       888.343s        coverage: 78.0% of statements in ./huaweicloud/services/asm

image

  • Documentation updated.
  • Schema updated.
  • CheckDeleted.

@github-ci-robot github-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 15, 2024
@github-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This PR has been approved by: @Lance52259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. feature size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants