当前位置:网站首页>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.jarBe careful : Here I'll just put
jacocoagent.jar package 、jacococli.jar The package is placed under the project directory , and src At the same levelIf 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 --address127.0.0.1--port9100--destfile ./jacoco.exec --resetadopt 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
边栏推荐
- 接口差异测试——Diffy工具
- 采用VNC Viewer方式远程连接树莓派
- How to maintain the brand influence of clothing enterprises
- JSON数据传递参数
- Speech recognition Series 1: speech recognition overview
- Returns the root node of the largest binary search subtree in a binary tree
- MFC文件操作
- 67 page overall planning and construction plan for a new smart city (download attached)
- Yolox enhanced feature extraction network panet analysis
- Convolution和Batch normalization的融合
猜你喜欢

跨境电商如何通过打好数据底座,实现低成本稳步增长

C# MVC创建一个视图摆脱布局的影响

C MVC creates a view to get rid of the influence of layout

Container runtime analysis

What can I do after buying a domain name?

Load balancing cluster (LBC)
![[error record] the flutter reports an error (could not resolve io.flutter:flutter_embedding_debug:1.0.0.)](/img/93/dc940caebe176177e4323317ebf4fa.jpg)
[error record] the flutter reports an error (could not resolve io.flutter:flutter_embedding_debug:1.0.0.)

CADD课程学习(4)-- 获取没有晶体结构的蛋白(SWISS-Model)

Interpretation of new plug-ins | how to enhance authentication capability with forward auth

Connexion à distance de la tarte aux framboises en mode visionneur VNC
随机推荐
采用VNC Viewer方式遠程連接樹莓派
sourcetree 详细
yolov5detect. Py comment
How can cross-border e-commerce achieve low-cost and steady growth by laying a good data base
跨境电商如何通过打好数据底座,实现低成本稳步增长
Writing of head and bottom components of non routing components
RuntimeError: no valid convolution algorithms available in CuDNN
php 获取真实ip
[analysis of STL source code] imitation function (to be supplemented)
【STL源码剖析】仿函数(待补充)
How much do you know about synchronized?
JDBC练习案例
Use redis to realize self increment serial number
PHP get real IP
Realization of mask recognition based on OpenCV
Load balancing cluster (LBC)
Implementation of VGA protocol based on FPGA
ArrayList analysis 2: pits in ITR, listiterator, and sublist
How to apply for company email when registering in company email format?
Speech recognition Series 1: speech recognition overview