Skip to content

Testing and Quality

rafageist edited this page Dec 5, 2026 · 2 revisions

Testing and Quality

Every change to Turbodoo runs, in CI:

  • the unit and integration tests on Linux, macOS and Windows, with Python 3.11 and 3.12;
  • the acceptance journeys: what a developer does, from the keys to what is on the screen and on disk, with Textual's Pilot (open, edit and save; a new module; Add fields with its diff; the models window; the addon inventory; F12 in XML; completion with Ctrl+Space; debugging a script; creating a workspace);
  • the real terminal scenarios: the installed turbodoo started in a pseudo-terminal with Microsoft's tui-test, keys as a terminal sends them, the exit code, and no process left behind (not the program being debugged, debugpy, nor the language server);
  • the web mode scenarios, on Linux and Windows: turbodoo --web started by the installed launcher (turbodoo.exe on Windows) and by the one-file binary, opened in Chromium with Playwright (menus, keys and mouse, Unicode, the clipboard, CRLF kept on save, tabs, completion, and no process left after Ctrl+C);
  • a build of the wheel installed in a clean environment;
  • the documentation's links.

A release also runs the real terminal scenarios on the Linux release binary before it is packaged.

Each scenario keeps its screens at its checkpoints, as SVG and text, uploaded with the CI run; a failure also keeps its screen, the terminal's trace and the processes left. Sets of evidence worth keeping are published in divengine/qa-evidence under projects/turbodoo/.

The scenarios, their preconditions and what they expect are in the repository's docs/acceptance-catalogue.md, and the method in docs/acceptance-testing.md. To run them:

pip install -e ".[dev,python]" -r acceptance/requirements.txt
python -m pytest -v acceptance/journeys acceptance/terminal
python -m playwright install chromium && python -m pytest -v acceptance/web

Clone this wiki locally