Skip to content

Runbook

How to run a tflw project. The Guide teaches the language; this section is the operator's side: installing, setting a project up, running it locally and in CI, and working on it in the editor and the page.

One project, the Coffee Shelf, from an empty directory to a green run in CI, in the order a first day goes. Each chapter starts where the one before it stopped, and every command in it is run on every change to tflw, exactly as written.

ChapterWhat you do
1InstallNode, the package, a browser
2The examplewrite the Coffee Shelf, read its config, start the shop, run the suite
3The first run and its reportthe terminal, report/, a failure on purpose, exit codes, --failed
4An API test of your owncapture, expect, fmt, check, refactor apply, docs, spec
5A browser testpick, record, watch, a trace
6Load and scana test at a rate, exit 3, a crawl, authorized target
7The pagetflw ui: a test changed in Compose, run with ▶, its failure read on Run, Config
8The editorthe VS Code extension, the Test Explorer, tflw lsp
9CIthe four lines, --shard and merge, export
10Your own serviceapi and web, envs, secrets, migrate

For when you know what you want to do and need the page for it.

WhenPage
Once per machineInstalling tflw: Node, the package, the browsers, and upgrading
Once per projectSetting up a project: tflw.config, envs, sessions, secrets
Every changeRunning a suite: locally, sharded, in CI, and what the report holds
Writing testsWorking on the page: tflw ui, Compose and Source, a run followed live
Writing testsWorking in the editor: diagnostics, the Test Explorer, refactors
When it refusesTroubleshooting: by what you see, not by error code
Any timeGlossary: the words the page, the report and these pages use

npx tflw doctor is the first command on any machine or project that is new to you: which tflw and Node, which env and services, the proxy and TLS settings, how big the suite is and which browsers are downloaded. It reads all of that without sending a request.

Every command and every flag is in the CLI reference, and the page has its own section. For the language by example, the worked examples are sixteen annotated files that run in tflw's own CI.