当前位置:网站首页>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
边栏推荐
- ZCMU--1492: Problem D(C语言)
- 探索STEAM艺术设计中的创造力
- [go ~ 0 to 1] obtain timestamp, time comparison, time format conversion, sleep and timer on the seventh day
- 电池、电机技术受到很大关注,反而电控技术却很少被提及?
- Unityhub cracking & unity cracking
- GFS分布式文件系统
- Qinglong panel -- Huahua reading
- Tuowei information uses the cloud native landing practice of rainbow
- Avatary's livedriver trial experience
- Using helm to install rainbow in various kubernetes
猜你喜欢
JS复制图片到剪切板 读取剪切板
轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
Automatic upgrading of database structure in rainbow
Give full play to the wide practicality of maker education space
Using helm to install rainbow in various kubernetes
Explore creativity in steam art design
Xcit learning notes
[quick start of Digital IC Verification] 14. Basic syntax of SystemVerilog learning 1 (array, queue, structure, enumeration, string... Including practical exercises)
CCTV is so warm-hearted that it teaches you to write HR's favorite resume hand in hand
Rainbow version 5.6 was released, adding a variety of installation methods and optimizing the topology operation experience
随机推荐
JS复制图片到剪切板 读取剪切板
MES系统,是企业生产的必要选择
Automatic upgrading of database structure in rainbow
Learn how to compile basic components of rainbow from the source code
Application of slip ring of shipborne radar antenna
Tuowei information uses the cloud native landing practice of rainbow
在Rainbond中实现数据库结构自动化升级
PVTV2--Pyramid Vision TransformerV2学习笔记
Don't stop chasing the wind and the moon. Spring mountain is at the end of Pingwu
Domain specific language / DSL in kotlin
Notes on PHP penetration test topics
在 Rainbond 中一键安装高可用 Nacos 集群
【雅思口语】安娜口语学习记录 Part3
GFS分布式文件系统
Make LIVELINK's initial pose consistent with that of the mobile capture actor
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
Vulnerability recurrence fastjson deserialization
[quick start of Digital IC Verification] 10. Verilog RTL design must know FIFO
Rainbond 5.7.1 支持对接多家公有云和集群异常报警
opencv学习笔记一——读取图像的几种方法