> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/general-concepts/devops/what-is-code-coverage.md).

# What is code coverage?

**Methodology** that quantitatively measures how comprehensive a code base's tests are.&#x20;

Increasing code coverage often increases stability and reduces bugs.

#### Formula:

* Total number of non-syntax lines with tests / total number of non-syntax lines

#### When to care about code coverage?

* Your product has users and those users might leave if they are affected by bugs
* You are working with developers that aren't immediately trustworthy like contractors/interns
* You are working on a very large code base with many testable components

{% hint style="warning" %}
**Common mistake - too many tests for uncertain features**
{% endhint %}
