Skip to content

Conversation

@DoChaoing
Copy link

What this PR does

Improves the test coverage of seata-spring-boot-starter module to 96% instruction coverage, addressing #6505.

Changes

  • pom.xml: Added spring-test dependency (test scope)
  • SeataAutoConfigurationTest: 7 tests (bean creation, disabled scenario, properties defaults/setters)
  • SeataDataSourceAutoConfigurationTest: 9 tests (proxy creator, disabled states, JDK/CGLIB proxy, excludes)
  • SeataHttpAutoConfigurationTest: 7 tests (web/non-web context, interceptor toggle, jakarta/javax fallback)
  • SeataSagaAutoConfigurationTest: 4 tests (state machine config/engine, async thread pool)

Coverage Results

Metric Value
Instruction Coverage 96%
Method Coverage 100%
Class Coverage 100%
Total Tests 28

Closes #6505

@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.78%. Comparing base (a1bb731) to head (3be1427).

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #7995      +/-   ##
============================================
+ Coverage     71.74%   71.78%   +0.04%     
  Complexity      872      872              
============================================
  Files          1310     1310              
  Lines         49977    49977              
  Branches       5945     5945              
============================================
+ Hits          35856    35876      +20     
+ Misses        11160    11145      -15     
+ Partials       2961     2956       -5     

see 7 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

task: Improve the test case coverage of [seata-spring-boot-starter] module to 70%

1 participant