随笔分类 -  SpringBoot Test

IDEA - 代码覆盖率测试报告
摘要:如何跑测试时计算code coverage 如何只看某几个类的覆盖率 如果这里不specific选择你想看的class, 很容易出现相同包下所有的类都被展示出来(可能某些类并不是该module拥有的) 如何导出code coverage报告 https://zhuanlan.zhihu.com/p/ 阅读全文

posted @ 2023-02-24 14:24 frank_cui 阅读(364) 评论(0) 推荐(0) 编辑

SpringBoot Test - 典型的Springboot test注解说明
摘要:重点汇总 1.一个典型的springboot test的class写法: 2.@RunWith(SpringRunner.class) @RunWith,就是一个运行期,顾名思义就是“在XX环境下运行”。 @RunWith(JUnit4.class) 就是指用JUnit4来运行 @RunWith(S 阅读全文

posted @ 2023-02-02 17:08 frank_cui 阅读(758) 评论(0) 推荐(1) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

levels of contents
点击右上角即可分享
微信分享提示