# Test Coverage

Kerno gives you a clear view of how well your project is covered by integration tests. The goal is to make it easy to understand what is tested, what is missing, and how each new test improves the overall quality of your system.

### How Coverage Is Calculated

Kerno calculates coverage by counting how many endpoints have tests, counting the total number of detected endpoints, and dividing the first number by the second. The formula is:

**Coverage = tested\_endpoints ÷ total\_endpoints**

$$
Coverage = Tested Endpoints ÷ Total Endpoints X 100
$$

### Adding Coverage

When you add coverage to an endpoint, Kerno updates your project coverage score. This happens instantly after the test suite is created and run.&#x20;

Each endpoint with tests contributes to the total progress of your project.

### Test Coverage Indicators

The Kerno panel shows coverage directly beside each code file. This helps you spot which parts of the project already have scenarios and which ones still need attention.

<figure><img src="/files/PKxMZZtnTVSevm76hhTD" alt=""><figcaption></figcaption></figure>

#### Endpoint Indicators

Each endpoint listed in the panel has an icon that tells you whether it already has scenarios or still needs coverage.

<i class="fa-play">:play:</i> = The endpoint already has tests

<i class="fa-plus">:plus:</i>  = The endpoint has no tests

<figure><img src="/files/b8yKjsCK9CbsKVWU9yYX" alt=""><figcaption></figcaption></figure>

These indicators let you scan the entire project quickly. You can tell at a glance which endpoints are complete and which ones still need attention.

{% hint style="info" %}
If you encounter issues or have questions, [message us on Discord](https://discord.gg/k8yA9tZdP9), and we’ll gladly help.
{% 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://kerno.gitbook.io/docs/getting-started/concepts/test-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.
