Create a Baseline

Create a baseline and add coverage to an untested endpoint

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 original record.

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.

If you encounter issues or have questions, message us on Slack, and we’ll gladly help.

Last updated