[Volunteer] Improve unit test coverage of shenyu-common
See original GitHub issueVolunteer help
As a branch of #3274 .
At present, the test coverage of shenyu-common module is not high. Please try to make the test coverage of each class reach more than 80% (in the case of ensuring the stability of the test).
If you would like to help, please leave a message under this issue. BTW, you can use Run 'Test in 'xxx'' With Coverage in IntelliJ IDEA to see the approximate coverage.

PS: If the modified code is too much, it can be divided into several pr submissions.
- org.apache.shenyu.common.cache @selectbook
- org.apache.shenyu.common.concurrent @Albertsirius
- org.apache.shenyu.common.config @Nick-fengzl
- org.apache.shenyu.common.dto @luoweijr
- org.apache.shenyu.common.timer @jun0315
- org.apache.shenyu.common.utils (maybe a large job) @zhangcly
Issue Analytics
- State:
- Created a year ago
- Comments:14 (12 by maintainers)
Top Results From Across the Web
[GitHub] [incubator-shenyu] luoweijr commented on issue #3275 ...
... on issue #3275: [Volunteer] Improve unit test coverage of shenyu-common ... and pick the package of org.apache.shenyu.common.dto -- This is an automated ......
Read more >Improving Test Coverage - Semantic Designs
The usual way to increase covered code answer is "code more tests" that exercise additional code. To minimize test coding effort, you want...
Read more >What is unit testing? How to improve your test coverage in Java
Short video introduction into why unit testing is important, what it is, and how you can easily improve test coverage in your Java...
Read more >شاحنة تفريغ الرمل والحصى Dongfeng Shenyu
[Volunteer] Improve unit test coverage of shenyu-common good first issue in: test level: medium status: volunteer wanted. #3275 opened on Apr 18 by...
Read more >How to Efficiently Increase Unit Test Coverage in Java
A lot of engineering managers dismiss this question because they know the answer: either have your team write more tests in between new...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@JooKS-me I will try to finish the task of org.apache.shenyu.common.timer
@MichaelDeSteven Hi, I found the cache package unnecessary to enhance the test. You can find small packages that need to improve test coverage in https://app.codecov.io/gh/apache/incubator-shenyu, and then create an issue to indicate what you want to do. Generally, we need to increase the test coverage to 80%.
BTW, ping @jun0315 @zhangcly, are you still doing it?