-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
fix(6509): improve the test case coverage of saga module to 70% #6519
Conversation
@xjlgod You can submit your PR in stages. |
I am trying to invoke codecov action to see my test case coverage by add new commit. But I find the error is
It seems that the quota limit has been reached. |
… into feature/2.x-saga-test # Conflicts: # saga/seata-saga-spring/src/test/java/org/apache/seata/saga/engine/tm/DefaultSagaTransactionalTemplateTest.java # saga/seata-saga-spring/src/test/java/org/apache/seata/saga/engine/tm/MockGlobalTransaction.java
import java.util.Map; | ||
|
||
/** | ||
* @author jingliu_xiong@foxmail.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete the author infomation,as well as below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have deleted it.
723a505
to
77cd034
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #6519 +/- ##
============================================
- Coverage 51.13% 50.24% -0.89%
- Complexity 5317 5596 +279
============================================
Files 950 1023 +73
Lines 33448 35440 +1992
Branches 4048 4216 +168
============================================
+ Hits 17103 17808 +705
- Misses 14666 15867 +1201
- Partials 1679 1765 +86 |
changes/zh-cn/2.x.md
Outdated
@@ -155,6 +155,7 @@ | |||
- [[#6456](https://github.com/apache/incubator-seata/pull/6456)] 调整动态配置监听测试用例 | |||
- [[#6466](https://github.com/apache/incubator-seata/pull/6466)] 支持redis的集成测试 | |||
- [[#6484](https://github.com/apache/incubator-seata/pull/6484)] 修复FileConfigurationTest和MockServerTest失败 | |||
- [[#6519](https://github.com/apache/incubator-seata/pull/6484)] 增加saga模块的测试用例覆盖率 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6519
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix it.
public void testCreateExpression() { | ||
SpringELExpressionFactory factory = new SpringELExpressionFactory(null); | ||
factory.createExpression("'Hello World'.concat('!')"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need assert result,not only call method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix it.
Ⅰ. Describe what this PR did
fix #6509
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews