当前位置:网站首页>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
边栏推荐
- "A good programmer is worth five ordinary programmers!"
- Remote connection of raspberry pie by VNC viewer
- How does win11 turn on visual control? Win11 method of turning on visual control
- [OJ] intersection of two arrays (set, hash mapping...)
- 可知论与熟能生巧
- How difficult is it to be high? AI rolls into the mathematics circle, and the accuracy rate of advanced mathematics examination is 81%!
- 基于FPGA的VGA协议实现
- cocospods 的使用
- C# MVC创建一个视图摆脱布局的影响
- Leetcode DP three step problem
猜你喜欢

95 pages of smart education solutions 2022

CADD course learning (4) -- obtaining proteins without crystal structure (Swiss model)

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

数据集-故障诊断:西储大学轴承的各项数据以及数据说明

PR FAQ, what about PR preview video card?

Optimization of streaming media technology

RuntimeError: no valid convolution algorithms available in CuDNN

Wechat applet basic learning (wxss)

Request and response

Print out mode of go
随机推荐
Codeforces Round #771 (Div. 2)---A-D
万物并作,吾以观复|OceanBase 政企行业实践
【ML】李宏毅三:梯度下降&分类(高斯分布)
[array] binary search
Top Devops tool chain inventory
JDBC練習案例
leetcode 650. 2 keys keyboard with only two keys (medium)
SharedPreferences save list < bean > to local and solve com google. gson. internal. Linkedtreemap cannot be cast to exception
Create an interactive experience of popular games, and learn about the real-time voice of paileyun unity
Linux 下安装 redis
Use of cocospods
Markdown basic grammar
The privatization deployment of SaaS services is the most efficient | cloud efficiency engineer points north
基于OpenCV实现口罩识别
Bean加载控制
JSON data transfer parameters
Explain in detail the process of realizing Chinese text classification by CNN
Go basic anonymous variable
JDBC practice cases
Remote connection of raspberry pie by VNC viewer