polarismesh / polaris

Service Discovery and Governance Platform for Microservice and Distributed Architecture
https://polarismesh.cn
Other
2.41k stars 399 forks source link

test:add unit test for service contract #1310

Closed chuntaojun closed 11 months ago

chuntaojun commented 11 months ago

Please provide issue(s) of this PR: Fixes #

To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

Please check any characteristics that apply to this pull request.

polaris-test-bot commented 11 months ago

2023-12-23 18:04:50: =========TEST START========== 2023-12-23 18:26:15: [STANDALONE VERSION]PR autotest FAILED! We executed 40 test cases and 37 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1655830862/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1655830862/sta/ratelimit/qta-report.html 2023-12-23 18:26:18: [CLUSTER VERSION] PR autotest FAILED! We executed 39 test cases and 34 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1655830862/clu/qta-report.html 2023-12-23 18:26:22: [KUBENETES VERSION]PR autotest FAILED! We executed 39 test cases and 36 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1655830862/k8s/qta-report.html

codecov[bot] commented 11 months ago

Codecov Report

Attention: 40 lines in your changes are missing coverage. Please review.

Comparison is base (756c945) 54.13% compared to head (e6a4f63) 55.20%.

Files Patch % Lines
config/watcher.go 0.00% 17 Missing :warning:
service/service_contract.go 36.00% 11 Missing and 5 partials :warning:
config/client.go 80.95% 4 Missing :warning:
store/mysql/service_contract.go 75.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1310 +/- ## ========================================== + Coverage 54.13% 55.20% +1.07% ========================================== Files 162 162 Lines 32399 32422 +23 ========================================== + Hits 17539 17899 +360 + Misses 12530 12155 -375 - Partials 2330 2368 +38 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.