Skip to content

Migrating to v5

aryehcitron@gmail.com edited this page Oct 26, 2026 · 4 revisions

Migrating to v5

Kronikol 5.0.0 writes the run's data file as TestRunReport.krkl, redraws the HTML report with tabs, a light and a dark theme and new filters, replaces labels and categories with tags, and runs on .NET 10 alone. This page lists each change and the setting that keeps the 4.x behaviour where there is one; the report and the tags each have a page of their own with the detail. Upgrading from 3.x? Read Migrating to v4 first.

What changed

4.x 5.0.0 To keep the 4.x behaviour
The run's data file TestRunReport.json TestRunReport.krkl: the same report, compressed whole CompressTestRunReport = false, or kronikol ingest --data-file json
The data file's schema Written beside every report Written only when asked GenerateTestRunReportSchema = true, or --schema on kronikol merge and kronikol ingest
Target frameworks net8.0, net9.0 and net10.0 net10.0 None: a test project on .NET 8 or 9 stays on 4.x
CompressTestRunReportPayloads On by default Obsolete (warning CS0618), and reaches only the JSON file Set it only alongside CompressTestRunReport = false; v6 removes it
A closed composite step's sub-steps Drawn in the page Drawn the first time the step opens, where they come to 2 KB of HTML or more RenderCollapsedSubStepsOnExpand = false
The HTML report Toolbar toggles, panels and disclosures, one set of colours Tabs on a report bar, a light and a dark theme on colour tokens, a run band, filter rows folded under More filters (from 5.11.0 a filter box hidden until the bar's Filters opens it, and a search with a Search tab) None: a stylesheet, a script or a browser test written against 4.x's markup may need changing ([[Migrating to v5: the report
Start states Assertion notes hidden, payloads cut at 40 lines, the dependency filter on AND Every diagram toggle but Headers on, payloads cut at 10 lines, the dependency filter on ANY (OR) AssertionsShown = false, TruncateLines = TruncateLineCount.Lines40 and DependencyFilterMode = FilterCombinationMode.And on TestRunReportToggleDefaults (and SpecificationsToggleDefaults)
History and diagnostics in the report Left out by default (on the labs page from 4.6.0) The History and Diagnostics tabs, on by default ShowHistorySection = false and ShowReportDiagnosticsSection = false, or kronikol ingest --no-diagnostics-section
Labels and categories Feature.Labels; Scenario.Labels and Scenario.Categories Feature.Tags and Scenario.Tags, filled by every adapter from its framework's own tagging None: the members are gone, and code that used them moves to tags ([[Migrating to v5: tags
var options = new ReportConfigurationOptions
{
    CompressTestRunReport = false,             // TestRunReport.json, as 4.x wrote it
    GenerateTestRunReportSchema = true,        // TestRunReport.schema.json beside it
    RenderCollapsedSubStepsOnExpand = false,   // every step drawn in the page
    ShowHistorySection = false,                // no History tab
    ShowReportDiagnosticsSection = false,      // no Diagnostics tab
    TestRunReportToggleDefaults = new ReportToggleDefaults
    {
        AssertionsShown = false,                          // assertion notes hidden
        TruncateLines = TruncateLineCount.Lines40,        // payloads cut at 40 lines
        DependencyFilterMode = FilterCombinationMode.And, // the dependency filter on AND
    },
};

The data file is TestRunReport.krkl

A run writes TestRunReport.krkl in place of TestRunReport.json. It is the same report as compact JSON, without the keys that hold nothing (unless the schema requires them), with every payload as text, and the whole compressed with zstd. It declares formatVersion 3. On BreakfastProvider's LightBDD report the JSON was 6,150,370 bytes and the .krkl 279,968, about a twentieth; a report filled by large payloads shrinks less, since each payload is already most of its own size. A mergeable run (GenerateMergeableData) writes its mergeable file the same way.

What reads it:

  • kronikol 4.30.0 and later: every kronikol query verb, kronikol merge, kronikol diff and the rest. An older kronikol refuses the file rather than half-reading it. Update the tool: dotnet tool update -g Kronikol.Tool.
  • The query.cs beside the report reads it, with nothing installed.
  • query.py reads it on Python 3.14 or later, which can decompress zstd; on an older Python it says so and stops.
  • The history action. The tool its VERSION file installs reads .krkl, so a workflow that pins the action to a tag before v4.30.0 has to move it on.
  • Your own scripts. The file is not JSON on disk, so jq, a grep or a JSON parser reads nothing from it. kronikol decode TestRunReport.krkl -o TestRunReport.json writes the JSON, and --indent indents it; or set CompressTestRunReport = false and keep the JSON. To answer a question about a run, kronikol query never needs the JSON.
  • CI uploads. An artifact step that names TestRunReport.json finds nothing: name TestRunReport.krkl, or upload the reports folder. See CI Artifact Upload.
  • Kronikol4J writes its own file and is not affected.

CompressTestRunReportPayloads has no effect on a .krkl: the payloads are text inside a file compressed whole, which comes out smaller than payloads compressed one by one.

The schema is written only when asked

GenerateTestRunReportSchema defaults to false, so a run no longer writes TestRunReport.schema.json beside its report. Nothing in Kronikol reads it. Set the option to true, or pass --schema to kronikol merge or kronikol ingest, if something of yours validates the data file or the JSON kronikol decode writes. A schema an earlier run left at the top of the reports folder stays there, since no Run.json lists it.

.NET 10 alone

Every package targets net10.0 alone; net8.0 and net9.0 are dropped, and net11.0 joins in a 5.x release when .NET 11 ships. A test project on .NET 8 or 9 stays on 4.x. The project templates offer --Framework net10.0 alone.

CompressTestRunReportPayloads is obsolete

It still works where it did, on the JSON file a run writes with CompressTestRunReport = false, and v6 removes it. Code that sets it gets warning CS0618 when it builds, which fails a build that treats warnings as errors: delete the line, unless you keep the JSON file and want its payloads compressed. kronikol ingest --payloads is obsolete with it.

Sub-steps are drawn when their step first opens

A composite step is drawn closed, as in 4.x. Where its sub-steps come to 2 KB of HTML or more, the page now holds them compressed and draws them the first time the step is opened, so a suite of deeply nested steps (LightBDD composites 20 levels down, say) keeps a small report. A step on the way to a failure is drawn and open as before. The report's search matches a word in a step nobody opened, Export Filtered HTML carries the steps its scenarios need, and a row of a parameterized group opens the steps that were open in the row it replaced.

The browser's own find (Ctrl+F) cannot see a step nobody opened, and neither can a script or a test of yours that looks for a sub-step's markup in the page's HTML. Set RenderCollapsedSubStepsOnExpand = false to draw every step in the page. From 5.6.0 the page itself is compressed, so with the option false such a script finds the steps' markup in the plain page kronikol decode writes, not in the file (below).

kronikol ingest and kronikol merge

kronikol ingest follows the library: without flags it writes TestRunReport.krkl and no schema. --data-file json writes the JSON, --schema the schema, and --payloads applies only with --data-file json. kronikol merge writes a .krkl when any input is one or -o names that extension, so shards from 5.0.0 runs merge into a .krkl; --schema writes the schema beside the merged file. See Ingesting External Captures and Merging Parallel Reports.

The HTML report is compressed (5.6.0)

From 5.6.0 TestRunReport.html and Specifications.html are written compressed, by a run, kronikol merge and kronikol ingest, with no option to turn it off: each is a small page that holds the report as zstd frames and opens it in the browser. Nothing a reader of the report does changes, and the data file is as it was. What changes is for a script or a test that reads the file:

  • A text search or a parser of the file (grep, a secret scan, an HTML parser in a test) finds nothing in it. kronikol decode TestRunReport.html -o plain.html writes the plain page, the report as a page written before 5.6.0 holds it, and HtmlReportFile.ReadPlain(path) (namespace Kronikol.Reports) gives code the same. To search what a run captured, kronikol query grep reads the data file.
  • A browser test that reads the page once its load event fires reads the loading screen: wait for window.__kronikolReady === true first.

See Generated Reports › The compressed page.

The report

Migrating to v5: the report covers the report's tabs, themes and settings: the stylesheet classes and page functions that are gone or changed, what a browser test should select now, the settings that mean something new, the links, and what a report shows differently. Report Themes lists the colour tokens.

Tags

Migrating to v5: tags covers labels and categories becoming tags: the members that are gone, what each adapter reads, how a 4.x data file and a 4.x tool read a 5.0.0 one, and what the report's Tags row shows.

Home · 🔍 Search this wiki Full-text search across every page. The “Pages” list above matches page and heading names, not page content.


Demo


Getting Started

Common Tasks

Integration Guides

Uninstrumentable / polyglot backends

Extensions

Configuration

Features

Reference

Clone this wiki locally