# Create a Baseline

### What the Baseline Represents

A baseline is a recorded set of behaviours that describe how your endpoint responds today. It tells Kerno what the expected inputs and outputs look like and how the endpoint behaves across a complete request sequence.

Once the baseline exists, every future test run compares new behaviour against this baseline.

{% hint style="info" %}
When creating a baseline for a new endpoint, Kerno will take 1-2 minutes to create the full test suite. When you run tests for the same endpoint the process will take a few seconds.
{% endhint %}

<figure><img src="/files/8yzW3adJKAX8yVpB4ytA" alt=""><figcaption></figcaption></figure>

### How the First Run Works

1. You select an uncovered endpoint in the Kerno panel.
2. You click the add button to begin generating coverage.
3. Kerno analyzes your code, understands how the endpoint works, and prepares a test plan.
4. Kerno generates test code for the endpoint and runs the scenarios inside your test environment.
5. If the generated code needs adjustments, Kerno fixes it automatically until all scenarios run cleanly.
6. After the run finishes, Kerno produces a scenario report that you can open inside your editor.

### Why There Are No Diff on the First Run

On the initial run there is nothing to compare. The purpose of this phase is to create the very first record of the endpoint. The behaviours observed during this run become the reference that future tests will check against.

### What You See in the Editor

After the baseline is created you will see:

* The endpoint marked as covered in the Kerno panel
* A set of generated scenario files
* A structured report that shows exactly what Kerno tested

This gives you a clear understanding of how the endpoint responded during the first run.

### What Happens Next

From this point forward, whenever you change code and run tests again, Kerno checks whether the new behaviour matches the baseline. Any difference is presented for review so you can accept the change or update your code.

{% 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/user-manual/create-a-baseline.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.
