Guide

Reports

A run can write a file on its way past: one for the build server, one for a script of yours, one to look at. Every report comes from the same run, so the numbers in them agree.

Start with JUnit XML. It is the one format every build server already reads, and it needs one flag.

stamp test . --junit reports/junit.xml

A passing run writes this. One testsuite per iteration of a plan, one testcase per step, with the time each one took.

<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="stampdrill" tests="3" failures="0" time="0.527">
  <testsuite name="BlogSmoke [run]" tests="3" failures="0" time="0.527" timestamp="2026-10-08T14:20:09Z">
    <testcase classname="Plans.stamp" name="List posts" time="0.063"/>
    <testcase classname="Plans.stamp" name="Read the first post and its comments" time="0.051"/>
    <testcase classname="Plans.stamp" name="Write" time="0.413"/>
  </testsuite>
</testsuites>

A check that did not hold becomes a failure inside its testcase, carrying the expression and the value actually found:

<testcase classname="posts.stamp" name="List posts" time="0.198">
  <failure message="expect body.posts.length == 3 (body.posts.length is 5)">expect body.posts.length == 3 (body.posts.length is 5)</failure>
</testcase>

Point your build server's test report step at that file and an API check that failed appears where every other failing test in the repository appears, with the step name and the reason. A plan's matrix shows up in the suite name, so a plan called Checkout with matrix env = staging|prod writes two suites, Checkout [env=staging] and Checkout [env=prod], and you can see which environment broke.

Three flags, and they can be given together:

--junit FThe format every build server already understands. Test plans only.
--json FFor a script of your own.
--html FOne file a browser draws and a machine parses.
stamp test .  --junit reports/junit.xml --json reports/api.json --html reports/api.html
stamp load .  --json reports/load.json --html reports/load.html

JSON, when you want the numbers

For anything a build server does not do for you: posting the slowest request to a chat room, keeping a week of timings, failing on a rule of your own. One entry per plan, with the fields below, plus an iterations array in which every step, request and check is nested under the iteration it ran in.

[
  {
    "plan": "BlogSmoke",
    "file": "Plans.stamp",
    "startedAt": "2026-10-08T14:20:09Z",
    "duration": 527,
    "passed": true,
    "timings": [{ "request": "listPosts", "count": 1, "min": 62, "average": 62, "p95": 62 }]
  }
]

A load test's JSON is a different shape, built for the same purpose: requests, failedRequests, rps, a latency object with the percentiles, every threshold with what it measured, requestsByName, and series, the per second record behind the charts. One load test writes an object; several write an array of them.

HTML, for the report you send someone

An --html report holds the measurements and nothing about how they look. They sit in the attributes of its own elements, stamp-plan, stamp-request, stamp-check and the rest: plans with every step and check, the actors of a concurrently block with the instant each one started, and load tests with their thresholds and their second by second series. The file is valid HTML and valid XML, so a build step can parse it with either.

One request out of a report, with the check that ran against it:

<stamp-request name="listPosts" method="GET" url="https://jsonplaceholder.typicode.com/posts?_limit=5"
               status="200" ms="62" at="0" passed="true">
  <stamp-check source="assert status == 200" line="6" passed="true"></stamp-check>
</stamp-request>

Opened in a browser, the same file draws itself: the verdict and the totals, a race with its actors on one clock, and throughput, latency and active users over time. It loads two files from stampdrill.com/report to do that, a stylesheet and a module of those elements, both under the same licence as the engine. Nothing is uploaded, the report is read where you opened it, and the page fetches nothing else. The version is part of the address, so a report that is already written keeps drawing the way it did when it was written. Before the elements are defined, and if they never arrive, the file shows one sentence with the same totals in it.

To keep a copy of those two files beside your own reports, or to read reports on a machine with no way out to the web, point at your copy:

stamp test . --html report.html --html-assets ./report-assets/

The page then asks for ./report-assets/report.css and ./report-assets/report.js instead. Those two files are what stampdrill.com/report/1.0/ serves, and they are the whole of it.

A load test report opened in a browser: the verdict, the totals of the run, and the charts for requests a second, p95 latency and active users
A load test report opened in a browser: the verdict, the totals of the run, and the charts for requests a second, p95 latency and active users

Two real ones to look at: a test run and a load test, both written by the commands above from the example workspace.

In the app

  1. Select the test plan in the sidebar and press ⌘↩, or click Run Plan.
  2. When it finishes, the header says passed or failed, with the iterations, the checks, the requests and the time, and an Export menu appears in that row, between the dimensions and the run button.
  3. Export ▸ HTML Report… writes the file this section is about, the one a browser draws and a build step can parse. JUnit XML… and JSON… are the other two, and the save panel offers a name made from the plan's.
  4. A load test has the same menu next to Run Load Test, with HTML Report… and JSON… on it. There is no JUnit there: that format is a list of test cases, and a load test has thresholds instead.

These are the same files the commands write, from the same run, so a report can come from the run you watched happen rather than a second one done for the purpose. The menu is only there once there is a finished run to export.

A test plan after it ran: passed, 3 of 3 iterations, 30 of 30 checks, with Export in the header row
A test plan after it ran: passed, 3 of 3 iterations, 30 of 30 checks, with Export in the header row

Next: Running in CI for where the JUnit file goes, Test plans for what fills a report, and Load tests for the charts.

Updated

Back: Running in CI Next: The app, in shortcuts