当前位置:网站首页>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
边栏推荐
- How can cross-border e-commerce achieve low-cost and steady growth by laying a good data base
- Use redis to realize self increment serial number
- 67页新型智慧城市整体规划建设方案(附下载)
- Go basic data type
- Sourcetree details
- [array] binary search
- Brief introduction to common sense of Zhongtai
- Returns the size of the largest binary search subtree in a binary tree
- List of major chip Enterprises
- I've been interviewed. The starting salary is 16K
猜你喜欢

Interface switching based on pyqt5 toolbar button -1

Why can't the start method be called repeatedly? But the run method can?

RTP 接发ps流工具改进(二)

Where is the win11 automatic shutdown setting? Two methods of setting automatic shutdown in win11

RuntimeError: no valid convolution algorithms available in CuDNN

Interface switching based on pyqt5 toolbar button -2

What experience is there only one test in the company? Listen to what they say

35页危化品安全管理平台解决方案2022版

Difference between NVIDIA n card and amda card
![Third party payment function test point [Hangzhou multi tester _ Wang Sir] [Hangzhou multi tester]](/img/d8/d22cbbaccb1594ee46aca098c41002.png)
Third party payment function test point [Hangzhou multi tester _ Wang Sir] [Hangzhou multi tester]
随机推荐
Integration of revolution and batch normalization
leetcode 650. 2 Keys Keyboard 只有两个键的键盘(中等)
Codeforces Round #771 (Div. 2)---A-D
[proteus simulation] 51 MCU +lcd12864 push box game
Analyze ad654: Marketing Analytics
2022年最新最全软件测试面试题大全
【STL源码剖析】仿函数(待补充)
顶级 DevOps 工具链大盘点
JDBC练习案例
[analysis of STL source code] imitation function (to be supplemented)
How to maintain the brand influence of clothing enterprises
Create an interactive experience of popular games, and learn about the real-time voice of paileyun unity
What is the official website address of e-mail? Explanation of the login entry of the official website address of enterprise e-mail
Yolox enhanced feature extraction network panet analysis
sourcetree 详细
Third party payment function test point [Hangzhou multi tester _ Wang Sir] [Hangzhou multi tester]
Writing of head and bottom components of non routing components
Go basic anonymous variable
[live broadcast appointment] database obcp certification comprehensive upgrade open class
I've been interviewed. The starting salary is 16K