当前位置:网站首页>Interface automation coverage statistics - used by Jacobo
Interface automation coverage statistics - used by Jacobo
2022-07-02 23:51:00 【Minmin 1020】
One 、 download Jacoco
Two 、Jacoco command
Start the service , Execute the following command in the project directory
java -javaagent:jacocoagent.jar=includes=*,output=tcpserver,port=
9100
,address=
127.0
.
0.1
-jar xxx/target/xxx.jar
Be careful : Here I'll just put
jacocoagent.jar package 、jacococli.jar The package is placed under the project directory , and src At the same level
If you make a mistake : Can't find jar, You can try to enter target Under the table of contents , Terminal execution pwd, Copy jar The location of the package .
After starting the service , Run automation code
adopt jacococli.jar Export coverage records exec file
java -jar jacococli.jar dump --address
127.0
.
0.1
--port
9100
--destfile ./jacoco.exec --reset
adopt jacococli.jar Generate coverage reports
Java -jar jacococli.jar report ./jacoco.exec --classfiles target/classes --sourcefiles src/main/java --encoding utf-
8
--html jacoReport
- Open the project in the browser jacoReport In the catalog index.html file , The coverage report can be displayed
边栏推荐
- 开源了 | 文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
- Analyze ad654: Marketing Analytics
- Container runtime analysis
- Brief introduction to common sense of Zhongtai
- QT 如何将数据导出成PDF文件(QPdfWriter 使用指南)
- Practical series - free commercial video material library
- Flexible combination of applications is a false proposition that has existed for 40 years
- Arduino - character judgment function
- Returns the maximum distance between two nodes of a binary tree
- 2022 latest and complete interview questions for software testing
猜你喜欢
JDBC教程
Bean load control
I've been interviewed. The starting salary is 16K
67页新型智慧城市整体规划建设方案(附下载)
Realization of mask recognition based on OpenCV
Optimization of streaming media technology
Highly available cluster (HAC)
Connexion à distance de la tarte aux framboises en mode visionneur VNC
95页智慧教育解决方案2022
Matlab 信号处理【问答笔记-1】
随机推荐
Interface switching based on pyqt5 toolbar button -2
Load balancing cluster (LBC)
[proteus simulation] 51 MCU +lcd12864 push box game
Unique line of "Gelu"
Use of cocospods
sourcetree 详细
S12. Verify multi host SSH mutual access script based on key
[error record] the flutter reports an error (could not resolve io.flutter:flutter_embedding_debug:1.0.0.)
Solution: exceptiole 'xxxxx QRTZ_ Locks' doesn't exist and MySQL's my CNF file append lower_ case_ table_ Error message after names startup
ArrayList analysis 2: pits in ITR, listiterator, and sublist
[array] binary search
【STL源码剖析】仿函数(待补充)
Matlab 信号处理【问答笔记-1】
Yolox enhanced feature extraction network panet analysis
Dishes launcher small green program and directory management (efficiency tool)
Develop knowledge points
Analyze ad654: Marketing Analytics
流媒体技术优化
yolov5detect. Py comment
Speech recognition Series 1: speech recognition overview