shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

shenyu-common module test coverage improvement

Open 0x12FD16B opened this issue 5 years ago • 10 comments

Task

Writing junit test case to impove shenyu-common module test coverage. Each task has been marked the classes that should be appended test code, if not specify, there are current code test coverage at end of line of each class. We hope the code test coverage can be improved to 85% above (the key logic code to 95%).

Task List:

  • [x] task1: impove the follow classes code test coverage org.apache.shenyu.common.healthcheck.HealthCheckTask(0%) @Technoboy-
  • [ ] task2: impove the follow classes code test coverage @Banana1995 org.apache.shenyu.common.enums.RpcTypeEnum(0%) org.apache.shenyu.common.enums.RateLimitEnum(0%) org.apache.shenyu.common.enums.AdminPluginOperateEnum(0%) org.apache.shenyu.common.enums.AdminResourceEnum(0%) org.apache.shenyu.common.enums.PluginTypeEnum(0%) org.apache.shenyu.common.enums.WafEnum(0%) org.apache.shenyu.common.enums.ParamTypeEnum(line coverage 100%, key branch coverage missing 25%) org.apache.shenyu.common.enums.HttpMethodEnum(line coverage 100%, key branch coverage missing 25%)
  • [ ] task3: impove the follow classes code test coverage @lahmXu org.apache.shenyu.common.exception.SerializerException(0% ) org.apache.shenyu.common.exception.ShenyuException(30%) org.apache.shenyu.common.exception.CommonErrorCode(0%)
  • [x] task4: impove the follow classes code test coverage @ywj1352 org.apache.shenyu.common.dto.MetaData(0%) org.apache.shenyu.common.dto.ConfigData(0%) org.apache.shenyu.common.dto.convert.rule.impl.ModifyResponseRuleHandle(0%) org.apache.shenyu.common.dto.convert.rule.impl.ContextMappingHandle(0%) org.apache.shenyu.common.dto.convert.rule.impl.ParamMappingHandle(0%)

Please read the Contribution Guideline before submitting the PR

0x12FD16B avatar Jul 29 '21 02:07 0x12FD16B

task4: impove the follow classes code test coverage assign me

ywj1352 avatar Jul 29 '21 03:07 ywj1352

i wanna take task2,pls assign to me

Banana1995 avatar Jul 29 '21 03:07 Banana1995

i wanna take task3,pls assign to me

lahmXu avatar Jul 29 '21 03:07 lahmXu

task1: impove the follow classes code test coverage assign to me

hhj0719 avatar Jul 29 '21 03:07 hhj0719

Hi,

You can reply to the communication on the mailing list : https://lists.apache.org/thread.html/r5c090356c793ad0bd7ada2dd51a76451580a1d583033ed0e97a472ec%40%3Cdev.shenyu.apache.org%3E

yu199195 avatar Jul 29 '21 03:07 yu199195

I wanna take task 4 or task 2,

changanjennifer avatar Jul 29 '21 04:07 changanjennifer

Sorry, the company has added important tasks for the time being. There is no time to deal with them for the time being

hhj0719 avatar Jul 29 '21 13:07 hhj0719

Sorry, the company has added important tasks for the time being. There is no time to deal with them for the time being

Please assign to me, @yu199195 .

Technoboy- avatar Jul 30 '21 01:07 Technoboy-

@Technoboy- thanks for help

yu199195 avatar Jul 30 '21 02:07 yu199195

I have finished the task3, please mark it @0x12FD16B

lahmXu avatar Aug 07 '21 15:08 lahmXu