当前位置:网站首页>Low success rate of unit test report
Low success rate of unit test report
2022-07-07 08:22:00 【@In progress】
The success rate of unit test report is low
Recently, a unit test report needs to be generated when a new project is launched , stay maven Use... In the console mvn surefire-report:report command , You can generate a unit test report . Under project folder target-site You can see the corresponding file under the path , Open the browser to see the detailed report .


If an error occurs when using this command to generate a report , So it could be pom File skipped test file ( Skip test cases when starting a formal project , Otherwise, there is a risk of error ). open pom file , Search for surefile keyword , stay skip In the label, change to false that will do .

Among the currently generated reports , Running test cases locally can pass , But in the generated test report , The success rate is very low , Basically, they all fail .


Check the error message and find , Errors are reported because they cannot be found eureka Registration center or configuration server .


View the... Of the test case properties Configuration file discovery , Set up eureka Placeholders are used when registering the address of the center , During normal service startup , This placeholder will be assigned in the startup script , But now it's test code , Will not run the startup script , So I can't find the address of the Registration Center . After finding out the reason , Let's replace the placeholder address with ip Address direct connection , Then regenerate the test report , You can see that the accuracy rate has been 100% successful .



label : java, Experience , Development , maven, test, Unit test report
Original address : The success rate of unit test report is low - mikiiii - Blog Garden
边栏推荐
- opencv学习笔记一——读取图像的几种方法
- The use of generics and vararg variable parameters in kotlin
- 漏洞複現-Fastjson 反序列化
- Understanding of out covariance, in inversion and invariance in kotlin
- Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
- Complex network modeling (I)
- offer收割机:两个长字符串数字相加求和(经典面试算法题)
- 积分商城管理系统中应包含的四大项
- 使用 Nocalhost 开发 Rainbond 上的微服务应用
- 柯基数据通过Rainbond完成云原生改造,实现离线持续交付客户
猜你喜欢

在 Rainbond 中一键安装高可用 Nacos 集群

Rainbond结合NeuVector实践容器安全管理

Using nocalhost to develop microservice application on rainbow

机器人教育在动手实践中的真理

Wang Zijian: is the NFT of Tencent magic core worth buying?

Splunk中single value视图使用将数值替换为文字

Don't stop chasing the wind and the moon. Spring mountain is at the end of Pingwu

Learn how to compile basic components of rainbow from the source code

Register of assembly language by Wang Shuang

Avatary's livedriver trial experience
随机推荐
Kotlin combines flatmap for filtering and zip merge operators
Réplication de vulnérabilité - désrialisation fastjson
The largest 3 same digits in the string of leetcode simple question
Pvtv2--pyramid vision transformer V2 learning notes
The reified keyword in kotlin is used for generics
opencv学习笔记四——膨胀/腐蚀/开运算/闭运算
Automatic upgrading of database structure in rainbow
One click deployment of highly available emqx clusters in rainbow
[quick start of Digital IC Verification] 14. Basic syntax of SystemVerilog learning 1 (array, queue, structure, enumeration, string... Including practical exercises)
Splunk中single value视图使用将数值替换为文字
GFS分布式文件系统
【雅思口语】安娜口语学习记录 Part2
轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
【Go ~ 0到1 】 第七天 获取时间戳,时间比较,时间格式转换,Sleep与定时器
Ebpf cilium practice (1) - team based network isolation
利用 Helm 在各类 Kubernetes 中安装 Rainbond
Function extension, attribute extension and non empty type extension in kotlin
Explore creativity in steam art design
Le système mes est un choix nécessaire pour la production de l'entreprise