Projects/UART test fixtures

uart-fixture-kit

Test your serial parser against broken byte streams, with no hardware attached.

Type
Open-source toolkit
Released
v0.3.0 (alpha)
Domain
Serial parser testing
Repo
vanovri/uart-fixture-kit
Synthetic fragmented bytes and completed message
01 / Problem

Problem

Serial parsers break on real-world byte streams: frames arrive fragmented, malformed or concatenated. Testing that usually needs the hardware attached.

02 / Approach

Approach

FixturesSynthetic UART byte streams
ScenariosFragmented · malformed · concatenated
Virtual timeDeterministic replay
Your parserTested without serial hardware

The kit provides reusable fixtures and a virtual-time replay so parser behaviour can be checked deterministically in ordinary test runs. Built with AI assistance.

03 / Build gallery

Build gallery

04 / Results

Results

Published as a public repository (latest release v0.3.0 alpha) with zero runtime dependencies, a 22-check correctness-gated parser profiler (2.12x bulk speedup vs. 0.78x single-byte dispatch overhead), and an 8-scenario offline fault viewer. No adoption figures are claimed.

05 / Lessons

Lessons

  • It grew out of the UART telemetry work on my EMG thesis, where malformed lines had to be handled safely.
  • Deterministic, hardware-free tests make serial code reviewable.
Verification update / 7 Nov 2026

v0.3.0

The repository contains automated checks for its included examples. Review the source audit below and the repository CI for the relevant commit and execution scope.

Verified release files

Source audit

Public source reviewed at the linked commit. Tests describe their included fixtures and do not establish field or production performance.

15 November 2026. Reviewed source ff3abde23fdf. Source evidence index.

Navigate with arrow keys. Enter opens a result. Escape closes search.