test: run, test, find and maps against a fake Keymapp #24

Merged
jwarykowski merged 2 commits from test/hardware-commands into main 2026-10-20 09:27:01 +00:00
Owner

The commands that drive a keyboard had no tests. A fake Keymapp on a unix socket answers GetStatus, SetRGBAll and SetRGBLed (with LEDs past a given one missing), so they now run in CI:

  • run -stdin paints and hands the keys back; run's flag errors
  • test sweeps
  • find steps on a timer or Enter and stops where the keyboard ends
  • maps reports the connected keyboard, or none

Coverage 69.7% -> 82.1%.

The commands that drive a keyboard had no tests. A fake Keymapp on a unix socket answers GetStatus, SetRGBAll and SetRGBLed (with LEDs past a given one missing), so they now run in CI: - `run -stdin` paints and hands the keys back; run's flag errors - `test` sweeps - `find` steps on a timer or Enter and stops where the keyboard ends - `maps` reports the connected keyboard, or none Coverage 69.7% -> 82.1%.
test: run, test, find and maps against a fake Keymapp
Some checks failed
CI / test (pull_request) Has been cancelled
60ae4c1733
A fake Keymapp on a unix socket answers GetStatus, SetRGBAll and
SetRGBLed, with LEDs past a given one missing, so the commands that
drive a keyboard run in CI: run -stdin paints and hands the keys back,
run's flag errors, test sweeps, find steps on a timer or Enter and stops
where the keyboard ends, maps reports the connected keyboard.

Coverage: 69.7% -> 82.1%.
docs: tests run with -race; commands' tests use a fake Keymapp
All checks were successful
CI / test (pull_request) Successful in 1m53s
91a5a4a922
jwarykowski deleted branch test/hardware-commands 2026-10-20 09:27:01 +00:00
Sign in to join this conversation.
No description provided.