Fistron docs

fistron.io

Map your suite and plan the missing tests

The suite map says which of the product’s functions the test suite reaches (the documentation’s pages, the API’s methods, the supported platforms), what CI ran, what is missing, and a plan of the missing tests by priority. It reads the suite’s Gherkin features, step definitions and run sets. Nothing in the suite is executed, and nothing is written to your repositories.

Before you start

Set it up

  1. Open the project’s Test plan page and click Set up.

  2. Under 1. Where the suite and the documentation are, enter:

    • The suite’s repository: github:owner/name or gitlab:group/project, for example github:acme/shop; acme/shop and the repository’s address (https://github.com/acme/shop) are taken too, and the field says how it reads them. A text that names no repository says so under the field, with the forms it takes;
    • Branch, tag or commit;
    • The documentation’s repository, when it is another, and its branch or tag. When you leave it empty, Fistron looks among the repositories the agent reads for one named after the suite’s repository (acme/shop-docs for acme/shop) or just docs, and reads the documentation there. Only when there is none does it look in the suite’s own repository.
  3. Click Find what to read. An agent reads the repositories (suite-map-detect); the page follows its work. The work runs on the agent, so you need not keep the page open: when the agent has other work before it, come back later. The page then shows the work still waiting or running, or offers Continue with what Fistron found; when it failed, why, and Find again. When the result is from before the map that is saved, the page says which map is in use and in which parts the two differ. Open the earlier proposal shows it in step 2 to compare: nothing changes unless you save it there, and saving replaces the map in use only when you tick Replace the map saved since with this one. When both say the same, the page says nothing.

  4. Under 2. Check what Fistron found, check the counts (features, step definitions, run sets, API methods, documentation pages, feature templates) and anything under Not found. Under the counts, the page says where the documentation is and what told Fistron so: an Antora layout (antora.yml and its modules’ pages), MkDocs (mkdocs.yml and its pages), Sphinx (conf.py and its index), or a directory named docs; then the other places it found. When the pages lie inside the test suite, the page warns The documentation found lies inside the test suite: those are probably the suite’s own notes, so go back to step 1 and name the documentation’s repository. Then check and change:

    • The map’s name;
    • The suite: features, step definitions, run sets, and how the run sets name a feature;
    • The documentation: pages, format (AsciiDoc, Markdown or reStructuredText), and the expression that gives a page’s area. Or Do not read the documentation;
    • The API: files and format (@apidoc tags in Java, or OpenAPI). Or Do not read an API;
    • The release notes: the product’s release notes or changelog, its files and format, for what each version released. Fistron does not look for them: Read release notes and name them. Or Do not read release notes;
    • The platforms: each with what names it in the suite (tags or words). Add one with Add a platform: its id and What names it. A platform’s word names its versions (sle names sle15sp6), not an architecture after its version: examplos161ppc is a platform of its own;
    • Feature templates: a feature the suite makes for each client from a template, its placeholder (<client>) filled with each value. Fistron finds a *.template file, the directory of the clients’ own features whose file names are the values, and the values that name no client (skipped). Check Template, Placeholder, Values, Values the suite skips, Output, Generated when the suite runs (not committed), and give the template’s other placeholders, the same for every client, one <name> = value per line. A new platform’s onboarding and smoke tests are derived from them; without them a proposed test for a new platform only copies the nearest platform’s files, and its request says so. Below the templates, Files that name each client: the files beyond the features that name every client (a table of each client’s package or channel, a hook per client’s tag). Fistron finds those that name at least three clients; a new platform gets an entry beside its nearest platform’s there;
    • How steps call the API, and what tags mean;
    • What a step drives besides the API: the files of the suite’s helpers, and the suite’s own words for a browser and a host, so that a scenario that drives one is never taken as an API test;
    • Scenarios that set up or clean up: the names, tags and features of the scenarios that create what other features use or clean up after them. They are not tests of their own: Fistron never proposes them to run earlier, and the map shows them as setup or cleanup with the reason. The names start with English defaults (Set up …, Cleanup: …); add your suite’s words, or turn on that a scenario whose steps check nothing sets up;
    • Unit tests of the product’s code (Python, Java, Go);
    • Suites in your tools (openQA, Testkube, Ansible, testinfra): for the system checks of an infrastructure change (an image, a package, an Ansible role). See Suites in your own tools.
  5. Choose the options:

    • Build the map every night;
    • Let the model propose links for the pages the rules leave, and word the plan, with What the repositories hold, for the model (choose Public for an open-source project);
    • With what CI ran: the project’s newest CI history and flaky record, and The CI history: the history of the suite’s own CI, by the name history-collect stored it under. With several histories (other repositories, other Jenkins jobs) choose the suite’s: the newest of any may match none of its scenarios. A test case of the history is a scenario by its feature’s path or by its feature’s title, as the test report names it. When no case of a history is a scenario, “never ran” is not measured at all: the map says so at the top (“Scenarios CI never ran: not measured”), with the first names of both sides and the likely reason, and no scenario is listed as never run. Building the map says which history the schedule gives and which the newest map read. A map without the product’s documentation says at the top that documentation gaps are not measured; set The documentation’s repository, when it is another, or the documentation’s pattern in the suite’s repository.
  6. Click Save. Fistron adds the schedule that builds the map and stores the configuration as the project’s document suite_map_config, both or neither: when either is refused, nothing is saved and the page says why.

  7. Saving asks an agent what the map’s patterns match. Open What the map reads and read What the map’s patterns match:

    • each pattern of the map with its part, its repository and how many files it matches;
    • a pattern that matches nothing says where its files lie, for example en/modules/*/pages/*.adoc (580 files) for modules/*/pages/*.adoc. Click Use it: the form opens with that pattern in place, and nothing changes until you save;
    • with a CI history chosen, how many of its test cases are scenarios of the suite. When none is, the history is of another job or branch: choose another under The CI history.

    The check reads the repositories, so it takes as long as an agent needs for that. After a change of the patterns, Check the patterns asks again.

To change it later, click Change under What the map reads, or Find again to read the repositories anew.

Suites in your own tools

A change to what code runs on (an image description, a package’s spec, an Ansible role) needs checks that only a running machine shows: it boots, the network comes up, its services start. Fistron writes their tests in the tool you test machines with (ADR 0116).

  1. Under Suites in your tools (openQA, Testkube, Ansible, testinfra), click Add a suite.
  2. Choose the Tool and enter its Repository and Branch, tag or commit.
  3. The changed files whose checks it tests: one pattern per line, for example images/*. Empty: every file. The first suite that covers a changed file gets its tests.
  4. For Ansible and testinfra, The test files, when not the tool’s usual ones.
  5. The defaults of a proposed test’s run, each replaceable when it runs:
    • The build before the change: a known good build without the change; a test of new behaviour must fail on it;
    • openQA only: The job’s settings (NAME=value per line, for example DISTRI=example), The setting the build goes in (default HDD_1) and The setting that names the schedule (default YAML_SCHEDULE).
  6. Click Save.

A proposed test runs in the tool from Proposed tests (use-proposed-tests.md).

Build and read the map

Refresh, on the right of the page’s tabs, reads the map, its set-up and the reviews of the scenarios again: a map built since shows without opening the page again. The tabs stay at the top while you scroll.

  1. Under Building the map, click Build now, or wait for the night. Pause stops the nightly build; Every night starts it again. Last built links to the work.
  2. Under The newest map, read how much of each kind of function is covered, and by which basis, and the plan’s first items. Within a priority, a new platform’s item comes first. Where the audits found them as what nothing tests, the items are in the order your team decided for that list, with Move it under each and the rule above them (use-quality-audit.md).
  3. When the card says Not platforms of the map (a platform’s version with an architecture after it, such as examplos161ppc), click Add them as platforms: the form opens with them added; check and click Save. Until then their scenarios are linked to no platform.
  4. Click The whole map and plan to open the map. It has the views Plan, Areas, Functions, Scenarios and Platforms, each with filters. A function or scenario links to its line in the repository. On Platforms, open a platform’s row to see its scenarios and what linked each (via a tag or a word).
Basis of a link Means
calls a step’s definition calls the API method (measured)
tag a platform’s or area’s tag or word names the scenario
text a page’s title and headings match a feature’s text
model proposed by the model; never counted as measured
Gap Priority of its plan item
api_uncalled: an API method no step reaches high when it changes data, medium for reads, low for deprecated ones
function_untested: a documentation page no feature matches medium (low for reference and legal pages)
platform_unvalidated: a supported platform no scenario needs high
not_in_run_set: a feature no run set names medium
run_set_broken: a run set names a missing feature high
undefined_steps: a step without a definition high
never_run: skipped in every run, or not in the history medium
failing: failed and never passed high
flaky: a flaky candidate high
manual_only: a task of the verification logs done by hand that no test does high when done in more than one log, medium otherwise

A documentation page whose title says it documents a workaround, a known issue or a limitation (or a restriction) is no gap: a test is for the fix when it comes. Such pages are marked in the map’s functions (“a documented workaround”) and the map’s notes say how many were left out.

With the project’s change assessments and change risk records, the plan also has items of a file: check_unsupported (a check no test supports), lines_uncovered (changed lines no test executes, mutants no test detects) and risk_unguarded (a file risky again and again and untested). Each shows whether it is met (with the test that met it), open or no longer applicable; the state comes with the next map and needs the licence’s feature repair.

With the project’s verification logs (and its verification profile), the plan also has an item for each task a person did by hand that no automated test does: manual_only (use-verification-log.md).

In the card Review the plan, an engineer says of each such item whether it is worth a test: Relevant, or Not relevant with why in the field beside it. An item not relevant is left out of the next maps while its evidence is the same; when the evidence changes (another line, a new failure) it comes back and asks again. The card counts what is reviewed.

Under Planning cards, the items become cards of your team’s tracker: an issue each, with its priority, area, why, its gaps and a link back to the item on the Test plan, where whoever takes the card chooses Propose a test. Enter the Repository (GitHub owner/name or GitLab group/project, where the agent’s configuration allows it to open issues) and your team’s Labels, then Create planning cards for the relevant items, or For every item without one. Each card stands beside its item (“Card #21”), and an item that has its card is not given a second one. A card is opened by the project’s agent, on your click.

Automation against documentation answers “which of the product’s functions does no test cover?” in one table: each documentation page, API method and platform the map reads, its area, its plan item’s priority and state, the gap (no feature, no API call, no scenario needs it, covered) and how its test was found: measured (a step calls it, a tag names it), a text estimate, the model’s proposal, or not at all. A text estimate is not measured: check it before you count it. Each row with a plan item has its card and Propose a test; the table filters by every column and exports as CSV or Markdown for whoever asked the question.

A page matched by text (or a function the model proposed) names the feature it was matched to, with Confirm and Not this feature. Your decision holds from the next map: a confirmed link reads “measured: confirmed by” you; a link that is not this feature is left out, and the page is a gap again unless another test covers it. Until then the row says what you decided.

Released without automation answers “which released features have no automation yet?”: each function the release notes name and no test covers, with Released since, the oldest version that names it, by its name or by text, and the entry that names it. Both are estimates; a function no release names is not “not released”, only not named. Each row has its gap, its plan item’s card and Propose a test. Without release notes the tab says so: set them under The release notes when you Change the map.

From a plan item, an engineer can have Fistron write the test: Get new tests proposed. For an item of a file it writes a unit test (pytest for Python, JUnit for Java, go test for Go) once the map names the product’s unit tests under Unit tests of the product’s code (Python, Java, Go).

Set the rules for new tests

What every test Fistron writes for the project must follow. They are checked without a model before a test is proposed, so they hold in an air-gapped installation too.

  1. On the Test plan, in the card Rules for new tests, an engineer clicks Set the rules (or Change the rules).
  2. Fill in what applies, one value a line:
    • Forbidden file names: patterns a new file never matches, e.g. fistron_*;
    • The name of a new feature file: e.g. srv_{area}_{method}.feature ({area}, {target}, {method});
    • The directory of a new feature: area: directory, * for any other area;
    • Required tags and Forbidden tags: e.g. @scope_*;
    • Forbidden steps: regular expressions, e.g. I wait for \d+ seconds;
    • The run set of a new feature: area: run set, or one name for all.
  3. Click Save the rules. The card lists them as sentences. Saving replaces all the rules.

Conventions lists what reviewers stated for every test when Fistron answered their review (use-proposed-tests.md) and what you accepted from the repository’s own rules; an engineer clicks Remove beside one that no longer holds.

Many repositories already say how their tests are written, in AGENTS.md, CONTRIBUTING.md or the instructions for coding assistants. Under From the repository’s own rules, click Draft from the repository’s rules: the agent reads those files of the test plan’s repository (or of the Repository you name, e.g. gitlab:group/project) and lists each item about tests with its file and line. Click Accept beside each one that should guide Fistron’s new tests; the rest stay proposals.

Name the reviewers Fistron follows

Whose comments Fistron answers when an engineer clicks Answer the review on Proposed tests: the people named here, besides the reviewers the agent’s configuration names. Anyone else’s comment is counted, never followed.

  1. In the card Rules for new tests, under Reviewers Fistron follows, a manager of the project or the organisation clicks Name the reviewers (or Change the reviewers). An engineer sees the list only.
  2. Enter their GitHub or GitLab logins in Reviewers, one a line, for example jroe. Leave it empty to name none.
  3. Click Save the reviewers. Saving replaces the whole list.

The agent follows them only when its configuration allows it; ask whoever runs the agent to set:

[agent]
control_plane_reviewers = true

Without it, Answer the review reads only the agent’s own reviewers, and the review’s record notes the names it did not follow.

Decide the next revision

Each summary of the audits (The audit of the project) proposes the Test plan’s next revision: its shorter feedback loop and what nothing tests, as changes of the Test plan. On the tab The next revision:

  1. The revision says what is new against the one before, whose estimate changed, and what is no longer proposed.
  2. Each change says why, the estimate in minutes where there is one, where it lands (a Fistron setting, the test suite’s repository by a request into your fork, or the team’s pipeline) and how it is applied.
  3. Write a note if you like, then Accept or Reject it. Your decision stands in the next revision: what you rejected is not proposed to you again as new.
  4. Propose from the newest summary of the audits makes a revision now, from the project’s newest summary.

An accepted change says how it is applied:

When it is done, Mark as applied: an applied change is not decided again.

An applied change says its effect, measured by the next audits: each stream’s whole run before and after it (“qe/head: the whole run 95 → 70 min (-25 min)”), and whether the audits still propose it or it is no longer a gap. It stays in the revision with that effect.

The list under Its history is every version: who decided what and when. (ADR 0172).

Without the control plane

fistron suite-map detect --repository github:acme/shop --docs-repository github:acme/shop-docs \
    --output shop-map.toml
fistron suite-map build --map-file shop-map.toml --history ci-history.json --output suite-map.json
fistron suite-map html suite-map.json --output test-plan.html

The HTML page works offline and can be sent as a file.

Troubleshooting

You see Cause and fix
“You have unsaved changes” when you leave step 2 Stay and click Save, open the other page in a new tab, or leave and lose the changes; what Fistron found waits on the page until you save.
Not found: … after Find what to read The agent could not read the repository: check its name, the ref, and that a private repository is on the agent’s allowlist.
“A saved map reads repositories, not an agent’s local paths” Name a repository for every source before saving.
Before saving lists problems Fix each item; Save is disabled until then.
“Not saved: the map’s schedule was refused” The control plane refused the schedule, e.g. more documents for one run than it gives; nothing was saved.
“Saved, but the schedule was not” (before 2026-11-05) The configuration was stored without its schedule; save again to add it.
“No schedule builds the map” Click Change, then Save with Build the map every night.
The model’s links are missing, a note says why The planner endpoint may not receive the map’s data class, or no endpoint has the role.
A rule is refused on save A name template has another placeholder than {area}, {target}, {method}, a directory leaves the repository, a tag pattern does not start with @, or a step pattern is not a regular expression.
The build stopped A build stops after 60 minutes by default; an expression in the configuration may backtrack without end.

Details: suite-map.md.