Checks
| Command | Coverage |
|---|---|
make format-check and make test |
Formatting, types, engine, ACKW, bridge and headless frontend tests. |
make test-battery |
Full regression run with individual test timings and the four benchmarks. |
make test-front-interactions |
React component interactions. Use make storybook to browse the stories. |
make test-front-state |
Frontend bridge, file picker and document upload and download tests. |
make test-view, make test-interaction, make test-integration |
Geometry, editing, controls, navigation and full-editor scenarios. |
make test-examples |
Open, edit, save and export the ACKW catalog. |
make test-desktop and make test-mcp |
Electron with test profiles, native dialogs, tab isolation and AI approvals. |
make test-html and make test-pdf |
HTML reading order and readability, PDF rendering, logical order and readability. |
make test-pdf-native and make test-pdf-rotation |
Native selection and diagnostics for rotated-text extraction. |
make test-perf, make test-typing-perf, make test-cell-perf |
Engine and interaction measurements. See Performance. |
Install Chromium with npx playwright install chromium or set CHROMIUM_PATH. The Make test targets generate the performance documents they need when the files are missing. PDF audits use Poppler and PDF.js, among other tools. See the PDF corpus notes for native prerequisites. Results are written to src/test/result/. Use make clean-test to remove test results, reports and coverage. Run make for the full list of targets.
The battery runs suites sequentially and continues after failures. Each run writes report.json, timings.csv, benchmarks.csv, suite logs and the original benchmark reports in a dated directory under src/test/result/. Vitest and native Node tests have individual durations. Browser scripts report elapsed time for the whole scenario, including setup. The benchmarks separately report operation timings, such as keystroke-to-paint and PDF export.
make test-battery
make test-battery BATTERY_ARGS="--baseline path/to/report.json"
make test-battery BATTERY_ARGS="--resume path/to/report.json"
Use --match to filter by suite or group name. Use --resume after a fix to rerun failed and unfinished suites. A baseline compares elapsed test times and operation timings for matching passing cases on the same platform, CPU and Node version. Treat an increase as a signal to repeat the benchmark under comparable load.
The PDF readability and rotation audits retain the documented failures of Poppler's geometric extraction. Check the PDF diagnostics alongside the tagged and raw reading-order tests.
After changing the ACKW contract, run node src/script/generate-document-schema.mjs. Use node src/script/generate-document-schema.mjs --check to compare the checked-in schema with the current input contract without rewriting it. The backend suite validates the example catalog against the current contract and tests pre-release migrations at the import boundary. Update the user guide when a control or gesture changes.
Performance
Run measurements from the repository root with Chromium installed. The example catalog explains how to generate the local workloads used by the default runs.
| Command | Measurement |
|---|---|
make test-perf |
Initial layout, recalculation after an edit or move, Canvas painting and HTML serialization. The benchmark also checks geometry against a fresh calculation. |
make test-typing-perf |
Keystroke-to-paint latency at the start, middle and end of the 50-page and million-character documents. |
make test-cell-perf |
Cell drag, resize and rotation. Compare latency, painted updates and time to settle after release. |
make test-pdf-perf |
PDF generation time on large documents. |
Measure one document or profile a specific gesture:
make test-perf PERF_ARGS=resources/examples/performance/1-million-caracteres.ackw
make test-cell-perf PERF_ARGS="--positions=middle --operations=rotate --passes=baseline,diagnostic --profile"
The cell benchmark separates baseline, detailed counters and CPU profiling. Add --trace for Chromium tasks, including Canvas and compositor work. --resources=PATH retains the bundle and source maps for later comparison.
To profile a manual interaction in the Electron window:
npm run profile:build
ACKWORD_DEV=1 npm start
In PowerShell, set $env:ACKWORD_DEV = "1" before npm start. Open View → Developer tools → Performance, record a single interaction and keep the matching bundle. make build restores the regular build.
Benchmark reports, CPU profiles and traces go to src/test/result/. Compare repeated runs on the same machine with the same document, browser and options. Capture a baseline before enabling instrumentation. Keystroke-to-paint latency and full pagination time measure different parts of the work. Renderer profiles do not include file writes in the main process.