Repository navigation
Migrating to v5 Tags
Kronikol 5.0.0 keeps one list of tags on each feature and on each scenario, where 4.x kept a feature's labels and a scenario's labels and categories. A scenario's tags in the report are its feature's tags, then its own. Every adapter reads its framework's own tagging (Tags and Attributes › Tags lists where each one looks), so a suite whose 4.x report showed no tags can show them on 5.0.0 without a change to its tests.
| 4.x | 5.0.0 | |
|---|---|---|
| The model |
Feature.Labels; Scenario.Labels and Scenario.Categories
|
Feature.Tags and Scenario.Tags, each the tags written at that level |
| Where tags come from | LightBDD's [Label] and [ScenarioCategory], Gherkin tags, BDDfy's tags and the tests NDJSON; the xUnit, NUnit, MSTest and TUnit adapters read none |
every adapter: xUnit Category traits, NUnit [Category], MSTest [TestCategory], TUnit [Category], BDDfy's tags and its test's Category traits, LightBDD's [Label] and [ScenarioCategory], Gherkin tags (a Rule:'s included) and the tests NDJSON |
@category:smoke, .WithTags("category:smoke")
|
the category smoke (on BDDfy, the label category:smoke) |
the tag smoke: the prefix is read and dropped, with no warning |
| Case |
Smoke and smoke were two categories with a button each, and @smoke matched both |
one tag, spelled as the report first meets it; only ASCII letters fold, so Über and über are two |
LightBDD's [HappyPath]
|
the label Happy Path as well as the flag |
the flag only: Happy Path is a happy-path name on every lane |
| The filter box | a Categories row: All, a button per category, Uncategorized and an OR/AND switch | one Tags row: a chip per tag with its count, Happy Path first, Untagged, and an ANY/ALL switch |
| A feature's tags | a badge and free-text search only | they count for each of the feature's scenarios, in the Tags row and in @tag search |
@tag search |
a scenario's own labels and categories | the Tags row's tags, Happy Path included; @"two words" for a tag with a space |
| Scenario element attributes |
data-labels and data-categories
|
data-tags, each tag percent-encoded, joined with commas |
| Toggle default | ReportToggleDefaults.CategoryFilterMode |
ReportToggleDefaults.TagFilterMode (default Or, which the switch shows as ANY) |
| Retries on the ingest lanes | a retry N label for each earlier attempt |
one retry badge drawn from the attempt (retry 2 for a third attempt); an author's own retry 2 is an ordinary tag |
| Data files |
labels and categories (Labels and Categories in YAML and XML) |
tags (Tags, and <Tags><Tag> in XML), each level's own; Specifications.md prints one Tags: line |
| CTRF |
tags held the scenario's labels; its categories were in extra.categories
|
tags hold the scenario's tags, its feature's first; no extra.categories
|
kronikol query scenarios |
--label; --json items carry labels and categories
|
--tag, with --label still taken as the same flag; --json items carry tags, the feature's first |
kronikol merge |
a merged feature kept the first shard's labels | a merged feature keeps the tags every shard gives it, and a shard's other feature tags move onto that shard's scenarios |
Only the framework's category attribute is read: other xUnit trait keys, such as [Trait("Produces", "openapi.json")], and NUnit or TUnit properties are not tags.
These members are gone, so code that uses them does not build on 5.0.0:
-
Feature.Labels: useFeature.Tags. -
Scenario.LabelsandScenario.Categories: useScenario.Tags, which holds both. Code that built a scenario with labels and categories puts both lists inTags. -
ScenarioTags.Classified.Labelsand.Categories:Classifiedis(Tags, Endpoint, IsHappyPath). -
ReqNRollConstants.CategoryTagPrefix: acategory:prefix is read and dropped wherever a tag is read, andScenarioTags.CategoryPrefixnames it. -
ReportToggleDefaults.CategoryFilterMode: setTagFilterMode. -
ReportGenerator.GenerateYamlSpecs: a second writer of the specifications YAML that nothing in Kronikol called. The run writesSpecifications.ymlas before.
HappyPathDetection.IsHappyPathTag also takes Happy Path, with its space.
-
Kronikol.Tool 5.x reads a 4.x file (
kronikol query,kronikol ctrf,kronikol cardfrom 5.21.0, andkronikol merge): its labels and categories are its tags, and a feature's labels are the feature's. Theretry Nlabels a 4.x ingest generated are left out where the scenario'sattemptaccounts for them. A report Kronikol4J wrote withlabelsandcategoriesreads the same way. -
A 4.x tool reads a 5.0.0 file as untagged. This change does not move
formatVersion(it stays 3), so the file is not refused and itstagsare skipped as a key the tool does not know:query scenarios --labelmatches nothing,kronikol ctrfwrites no tags, andkronikol mergewrites a merged report without them. Read 5.0.0 reports with Kronikol.Tool 5.x. -
History does not read tags, so the history action and
kronikol historywork as before, whichever version of the tool reads the file. -
A committed
Specifications.yml,.jsonor.xmlchanges on the upgrade: itsLabelsandCategoriesbecomeTags(tagsin JSON), and a suite that tags its tests through its framework gains tags it did not have. -
Your own scripts that read
labelsorcategoriesfromTestRunReport.jsonreadtags, on the feature and on the scenario. A scenario's tags in the report are its feature's, then its own.
- The Categories row is gone, and with it the classes a custom stylesheet may target:
.category-filters,.category-toggle,.category-activeand.cat-mode-toggle. - A link a 4.x report wrote keeps its meaning:
cats=is read astags=,catmode=as the tag mode when the link has notagmode=, and__uncategorized__as Untagged. 5.0.0 writestags=,tagx=andtagmode=, each name percent-encoded (Generated Reports › Deep links).
Besides the tags the adapters now read, 5.0.0 changes what some reports show:
-
ReqNRoll: a feature's tags are its
Feature:'s (Reqnroll'sFeatureInfo.Tags). 4.x read them from the feature's first scenario, which gave that scenario's rule tags to the whole feature and lost a feature tag the scenario repeated. -
Gherkin rules: a
Rule:'s tags reach its scenarios, on ReqNRoll and on the Cucumber Messages lane, where 4.x dropped a plain rule tag. -
NUnit
[TestCase]:[HappyPath]on a[TestCase]method marks its cases, and a fixture whose first captured test is a[TestCase]keeps its[Endpoint]. - A tag with a comma, a double quote or a space filters, is found by search and survives a link. 4.x split a tag at a comma, and a quote in one broke a shared link.
- A parameterized group shows the tags all of its rows carry, less its feature's.
- The chips' order no longer depends on the machine's culture: Happy Path first, then by name with ASCII letters folded.
Home · 🔍 Search this wiki Full-text search across every page. The “Pages” list above matches page and heading names, not page content.
Getting Started
- Quick Start (xUnit)
- Project Templates
- AI Integration Prompt
- Framework Integration Guides
- Migrating to v5
- Migrating to v4
Common Tasks
Integration Guides
- Integration xUnit3
- Integration xUnit2
- Integration NUnit
- Integration MSTest
- Integration TUnit
- Integration BDDfy xUnit3
- Integration LightBDD xUnit2
- Integration LightBDD xUnit3
- Integration LightBDD TUnit
- Integration ReqNRoll xUnit2
- Integration ReqNRoll xUnit3
- Integration ReqNRoll TUnit
- Integration Playwright
Uninstrumentable / polyglot backends
- Integration ProxyTap Extension
- Integration TcpTap Extension
- Integration Otlp Extension
- Exporting to OpenTelemetry
- Ingesting External Captures
- Ingesting from Jest
- Integration Cucumber Messages
- Capture-Time Redaction
Extensions
- Integration AtlasDataApi Extension
- Integration BigQuery Extension
- Integration Bigtable Extension
- Integration BlobStorage Extension
- Integration ClickHouse Extension
- Integration CloudStorage Extension
- Integration CosmosDB Extension
- Integration Dapper Extension
- Integration DynamoDB Extension
- Integration EF Core Relational Extension
- Integration Elasticsearch Extension
- Integration EventBridge Extension
- Integration EventHubs Extension
- Integration Grpc Extension
- Integration Kafka Extension
- Integration MassTransit Extension
- Integration MongoDB Extension
- Integration MySqlConnector Extension
- Integration Npgsql Extension
- Integration Oracle Extension
- Integration PubSub Extension
- Integration Redis Extension
- Integration S3 Extension
- Integration ServiceBus Extension
- Integration SNS Extension
- Integration Spanner Extension
- Integration SqlClient Extension
- Integration Sqlite Extension
- Integration SQS Extension
- Integration StorageQueues Extension
- Integration OpenTelemetry Extension
- Integration DispatchProxy Extension
- Integration MediatR Extension
- Integration PlantUML IKVM
Configuration
- Tracking Dependencies
- Tracking Custom Dependencies
- HTTP Tracking Setup
- Report Configuration
- Diagram Customisation
- Phase-Aware Tracking
- Content Formatting
- PlantUML Server Configuration
Features
- Generated Reports
- Report Themes
- Search and Filter Syntax
- Component Diagrams
- PlantUML Browser Rendering
- Inline SVG Rendering
- Internal Flow Tracking
- Tags and Attributes
- Excluding Requests
- Excluded Headers
- Multi-Host Test Architectures
- Event-Driven Architecture Testing
- Service Bus Tracking Patterns
- Background Thread Correlation
- Parallel-Safe Background Correlation
- Event & Message Tracking
- Assertion Tracking
- Step Tracking
- Tabular Attributes
- Large Response and Diagram Handling
- Querying Reports
- Service Card
- Cross-Run History
- Diagnostics and Debugging
- CI Summary Integration
- CI Artifact Upload
- Merging Parallel Reports
Reference