- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 206字
- 2021-06-24 18:31:48
Code coverage tools
The fact that we wrote tests does not mean that they are good, nor that they cover enough code. As soon as we start writing and running tests, the natural reaction is to start asking questions that were not available before. What parts of our code are properly tested? What are the cases that our tests did not take into account? Are we testing enough? These and other similar questions can be answered with code coverage tools. They can be used to identify the blocks or lines of code that were not covered by our tests; they can also calculate the percentage of code covered and provide other interesting metrics.
They are powerful tools used to obtain metrics and show relations between tests and implementation code. However, as with any other tool, their purpose needs to be clear. They do not provide information about quality, but only about which parts of our code have been tested.
Let's take a look at one of the most popular tools used to calculate code coverage.
- Computer Vision for the Web
- CMDB分步構(gòu)建指南
- C#編程入門指南(上下冊)
- R語言數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南
- 名師講壇:Java微服務(wù)架構(gòu)實戰(zhàn)(SpringBoot+SpringCloud+Docker+RabbitMQ)
- Oracle BAM 11gR1 Handbook
- 算法訓(xùn)練營:提高篇(全彩版)
- Mathematica Data Analysis
- C++從入門到精通(第5版)
- Python深度學(xué)習(xí)原理、算法與案例
- Android Development Tools for Eclipse
- 深入分析GCC
- MATLAB 2020 GUI程序設(shè)計從入門到精通
- Java面試一戰(zhàn)到底(基礎(chǔ)卷)
- 新手學(xué)ASP.NET 3.5網(wǎng)絡(luò)開發(fā)