- 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.
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- CockroachDB權威指南
- PaaS程序設計
- Vue.js快跑:構建觸手可及的高性能Web應用
- Python進階編程:編寫更高效、優雅的Python代碼
- Mastering Kali Linux for Web Penetration Testing
- Jupyter數據科學實戰
- 批調度與網絡問題的組合算法
- 單片機C語言程序設計實訓100例
- Mastering ArcGIS Enterprise Administration
- Lift Application Development Cookbook
- Fastdata Processing with Spark
- Node.js進階之路
- Sony Vegas Pro 11 Beginner’s Guide
- Test-Driven iOS Development with Swift 4(Third Edition)