当前位置:网站首页>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
边栏推荐
- Solution to boost library link error
- [array] binary search
- Judge whether the binary tree is full binary tree
- 判断二叉树是否为满二叉树
- Print out mode of go
- How to maintain the brand influence of clothing enterprises
- YOLOX加强特征提取网络Panet分析
- 万物并作,吾以观复|OceanBase 政企行业实践
- JDBC practice cases
- I've been interviewed. The starting salary is 16K
猜你喜欢
Happy Lantern Festival, how many of these technical lantern riddles can you guess correctly?
What can I do after buying a domain name?
RuntimeError: no valid convolution algorithms available in CuDNN
Fusion de la conversion et de la normalisation des lots
理想汽车×OceanBase:当造车新势力遇上数据库新势力
35页危化品安全管理平台解决方案2022版
Speech recognition Series 1: speech recognition overview
How can cross-border e-commerce achieve low-cost and steady growth by laying a good data base
CDN acceleration requires the domain name to be filed first
Third party payment function test point [Hangzhou multi tester _ Wang Sir] [Hangzhou multi tester]
随机推荐
Leetcode relaxation question - day of the week
Load balancing cluster (LBC)
基于OpenCV实现口罩识别
ArrayList分析2 :Itr、ListIterator以及SubList中的坑
Convolution和Batch normalization的融合
sourcetree 详细
JDBC tutorial
35 pages dangerous chemicals safety management platform solution 2022 Edition
Yolox enhanced feature extraction network panet analysis
How to set automatic reply for mailbox and enterprise mailbox?
RTP 接发ps流工具改进(二)
Master the development of facial expression recognition based on deep learning (based on paddlepaddle)
Agnosticism and practice makes perfect
How to apply for company email when registering in company email format?
Third party payment function test point [Hangzhou multi tester _ Wang Sir] [Hangzhou multi tester]
Practical series - free commercial video material library
MFC file operation
(stinger) use pystinger Socks4 to go online and not go out of the network host
Optimization of streaming media technology
实用系列丨免费可商用视频素材库