Skip to content

Conversation

@WangzJi
Copy link
Contributor

@WangzJi WangzJi commented Jun 12, 2025

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

Ⅱ. Does this pull request fix one issue?

Fixes: #7376

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@YongGoose YongGoose requested review from YongGoose and Copilot June 12, 2025 04:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds unit tests for the GlobalTransactionScanner class by updating the changelog entries.

  • Added changelog entries in the Chinese and English changelog files to note the new unit tests
  • Ensured consistency in the changelog description for tracking test coverage updates

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
changes/zh-cn/2.x.md Added test entry for GlobalTransactionScanner in Chinese
changes/en-us/2.x.md Added test entry for GlobalTransactionScanner in English
Comments suppressed due to low confidence (1)

changes/zh-cn/2.x.md:91

  • [nitpick] Consider revising the changelog entry wording for GlobalTransactionScanner to match the style of similar entries. For example, change it to '为 GlobalTransactionScanner 类添加了单元测试'.
+- [[#7433](https://github.com/apache/incubator-seata/pull/7433)] 增加对 GlobalTransactionScanner 添加了测试

@codecov
Copy link

codecov bot commented Jun 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.46%. Comparing base (16be18e) to head (fec81c4).
Report is 1 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #7433      +/-   ##
============================================
+ Coverage     58.33%   59.46%   +1.13%     
+ Complexity      575      547      -28     
============================================
  Files          1269     1281      +12     
  Lines         45774    46186     +412     
  Branches       5555     5568      +13     
============================================
+ Hits          26700    27463     +763     
+ Misses        16510    16154     -356     
- Partials       2564     2569       +5     

see 68 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@WangzJi WangzJi requested a review from xingfudeshi June 13, 2025 11:26
@funky-eyes funky-eyes added this to the 2.5.0 milestone Jun 13, 2025
@funky-eyes funky-eyes added type: test test case module/spring spring module labels Jun 13, 2025
Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Please send your DingTalk ID to jianbin@apache.org, and I will invite you to join the Seata developers group.

@funky-eyes funky-eyes merged commit c82cdbb into apache:2.x Jun 13, 2025
6 checks passed
slievrly pushed a commit to slievrly/fescar that referenced this pull request Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module/spring spring module type: test test case

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add UT for GlobalTransactionScanner class

4 participants