当前位置:网站首页>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
边栏推荐
- Rainbow 5.7.1 supports docking with multiple public clouds and clusters for abnormal alarms
- The largest 3 same digits in the string of leetcode simple question
- Leetcode medium question my schedule I
- 【无标题】
- Ebpf cilium practice (2) - underlying network observability
- 拓维信息使用 Rainbond 的云原生落地实践
- 柯基数据通过Rainbond完成云原生改造,实现离线持续交付客户
- JS copy picture to clipboard read clipboard
- opencv学习笔记一——读取图像的几种方法
- Automatic upgrading of database structure in rainbow
猜你喜欢

Caractéristiques de bisenet

船载雷达天线滑环的使用

【雅思口语】安娜口语学习记录 Part2

解读创客思维与数学课程的实际运用

CTF-WEB shrine模板注入nmap的基本使用

Rsync remote synchronization

opencv学习笔记三——图像平滑/去噪处理

Analysis of maker education in innovative education system

在Rainbond中一键部署高可用 EMQX 集群

Improve the delivery efficiency of enterprise products (1) -- one click installation and upgrade of enterprise applications
随机推荐
Basic use of CTF web shrink template injection nmap
Leetcode simple question: find the K beauty value of a number
Domain specific language / DSL in kotlin
通俗易懂单点登录SSO
Full text query classification
JS复制图片到剪切板 读取剪切板
Analyzing the influence of robot science and technology development concept on Social Research
Myabtis_ Plus
Don't stop chasing the wind and the moon. Spring mountain is at the end of Pingwu
云原生存储解决方案Rook-Ceph与Rainbond结合的实践
Practice of implementing cloud native Devops based on rainbow library app
漏洞複現-Fastjson 反序列化
Rsync remote synchronization
PVTV2--Pyramid Vision TransformerV2学习笔记
opencv学习笔记三——图像平滑/去噪处理
Standard function let and generic extension function in kotlin
Infix keyword infix expression and the use of generic extension function in kotlin
Qinglong panel - today's headlines
[IELTS speaking] Anna's oral learning records Part3
单元测试报告成功率低