# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arkannis.net/general-concepts/devops/what-is-code-coverage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
