随笔分类 -  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) 编辑

Test - @Test注解(Junit4) 与 继承TestCase(Junit3) 混用问题及原因
摘要:前言 在作单元测试的时候,可能使用@Test注解执行一个测试用例,或者测试类继承junit.framework.TestCase,方法名为test前缀执行测试用例,如下: 1. 使用@Test注解 public class Junit4Test { @Test public void testX() 阅读全文

posted @ 2022-02-28 10:34 frank_cui 阅读(492) 评论(0) 推荐(0) 编辑

Java Test - java.lang.Exception: No runnable methods
摘要: 阅读全文

posted @ 2021-12-02 15:55 frank_cui 阅读(9) 评论(0) 推荐(0) 编辑

Java Test - Junit @Test @Before @After 测试函数的执行次序
摘要:@BeforeClass @Before @AfterClass @After @Test“之间”的执行次序问题 一个Junit 的测试类,总运行次序为: -> @BeforeClass -> { Test 函数的特定运行次序,每个@Test都要执行(@Before -> @Test -> @Aft 阅读全文

posted @ 2020-10-29 22:51 frank_cui 阅读(814) 评论(0) 推荐(0) 编辑

< 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
点击右上角即可分享
微信分享提示