Skip to content
Back to skills

Report Tests

ASecurity

Produce and read the tests report (mxcli report tests): microflow test results, browser journeys, and measured microflow coverage per module in five categories, with the gaps. Use when asked what the tests check, whether they pass, how much of the app they reach, or which untested microflows deserve a test.

  • 143 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 22, 2026
ai-agentsgojavabashtestingdatabase

Works with

  • cli

Security analysis

A100/100

Scanned November 22, 2026

npx -y skills add mendixlabs/mxcli --skill report-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Report Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Report Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mendixlabs-report-tests/badge)](https://www.skillsdirectory.com/skills/mendixlabs-report-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: report-tests
description: "Produce and read the tests report (mxcli report tests): microflow test results, browser journeys, and measured microflow coverage per module in five categories, with the gaps. Use when asked what the tests check, whether they pass, how much of the app they reach, or which untested microflows deserve a test."
---
<!-- skill-index: generated by scripts/skill-index.py; make check-skill-index -->
## Find it fast

`sed -n '<from>,<to>p' SKILL.md` one section rather than reading the file;
`./mxcli syntax <topic>` answers *how do I write this* for a fraction of either.

| lines | section |
|---|---|
| 31-43 | Preconditions (check every one) |
| 44-66 | Run it |
| 67-83 | Reading it |
| 84-100 | Which gaps deserve a test |
| 101-104 | Related |

<!-- /skill-index -->
# Tests Report

`mxcli report tests` answers three questions in one page: what the microflow tests
and browser journeys check, whether they passed, and which microflows they reach,
per module — reached by both, by tests only, by journeys only, run only at startup
or on a schedule (not a gap), or by neither.

Coverage is measured, not estimated: static reach for microflow tests (what each test
calls, through the call graph) and runtime reach for journeys (every
`Microflow <name>` span inside a journey's time window).

## Preconditions (check every one)

1. **Fresh seed.** Journeys consume seed data: on a database earlier runs used, a
   journey can stop on its own precondition (no valid day left to swap). Before a
   full run: drop the database, recreate it, boot with the mock/seed import. Record
   it in the journey log: `{"meta":true,"database":"fresh seed 2026-11-12"}`.
2. **Do not commit while `mxcli test` runs.** The runner injects a temporary
   `MxTest` module, a Java action and theme files; a commit taken mid-run captures
   them. The report warns when the working tree has them.
3. **Tracing on for journeys.** The app must run with
   `mxcli run --local --trace-otlp http://127.0.0.1:4318`, and something must be
   listening there (the report's `--journeys-cmd`, or `mxcli report collect-spans`).

## Run it

```bash
# microflow tests only (runs them, then reports)
mxcli report tests -p app.mpr --run -o docs/testing/tests.html

# with journeys: app running with --trace-otlp; the script appends to $MXCLI_JOURNEY_LOG
mxcli report tests -p app.mpr --junit results.xml \
  --journeys-cmd "npx playwright test journeys/" --database "fresh seed 2026-11-12" \
  --format json -o docs/testing/tests.json
mxcli report tests --from docs/testing/tests.json --annotations docs/testing/notes.yaml -o docs/testing/tests.html
```

The journey log is JSONL, one line per journey (or step):

```json
{"journey":"Swap a shift","start":"2026-11-12T10:00:01.120Z","end":"2026-11-12T10:00:09.410Z","status":"passed","checks":["sees 3 offers","swap requested"]}
```

Write `checks` from the script's own assertion messages. Prose written from a
journey's name drifted from what it checks on the prototype; the page shows the
checks verbatim for that reason.

## Reading it

- **Static reach overstates.** A microflow a test enters may have branches no test
  takes. "Reached" means entered, not exercised.
- **Runtime reach is exact** for what ran — but only for microflows. Nanoflows and
  page logic are not counted; a page fed only by database data sources runs no
  microflow at all.
- **Microflows called from Java** are invisible to static reach (#1819); journeys
  still see them.
- **Tests that call no microflow** (create, retrieve, assert) are listed: they add
  nothing to reach and may test the platform rather than the app.
- **"Startup or scheduled" is not a gap.** It is the after-startup, before-shutdown
  and health-check flows and scheduled events, with what they call; the Gaps section
  lists the two apart under "Runs without a test".
- **"What only one journey runs"** lists, per journey, the microflows no other journey
  and no test reaches — what is lost if that journey is dropped or starts failing.

## Which gaps deserve a test

The page groups the gaps **by kind** first: *callable by a role* (a page or the
client can start it — usually needs a test), *called by other logic*, *seed or demo
data* (by name; usually not), and *no reference in the model* — dead code, or called
from Java, which the model does not show. Then give each module's gap list a verdict (`gap:<Module>`): `needs a test` for business
rules and anything that writes data; `admin only` for back-office screens covered by
a journey's smoke check; `dead — remove` when the architecture report's unused list
agrees. Do not chase 100%: a gap list that is explained is the goal.

```yaml
items:
  "gap:Swaps": {status: needs a test, note: "approval rules"}
  "gap:Admin": {status: admin only}
  "journey:Swap a shift": {note: "also covers the notification e-mail"}
```

## Related

- `test-microflows` — writing `.test.mdl` tests; `test-app` — Playwright journeys.
- `report-traceability` — the same evidence, read per requirement.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.