Skip to content

test: add unit tests and CI for protocol logic - #1

Merged
tfohlmeister merged 1 commit into
mainfrom
add-tests
Jun 19, 2026
Merged

test: add unit tests and CI for protocol logic#1
tfohlmeister merged 1 commit into
mainfrom
add-tests

Conversation

@tfohlmeister

Copy link
Copy Markdown
Owner

Extracts the reverse-engineered protocol logic (status decode, fan/cover state, JSON parse) into a dependency-free header and adds 26 host-side Unity tests plus a GitHub Actions workflow (native tests + firmware compile check). Firmware behavior unchanged. CI green.

Extract the reverse-engineered protocol logic (status decoding, fan/cover
state, JSON parsing) from main.cpp into a dependency-free header so it can
be unit-tested on the host. Add 26 Unity tests running in PlatformIO's
native environment, plus a GitHub Actions workflow that runs the tests and
a firmware compile check on every push. Behavior of the firmware is
unchanged.
@tfohlmeister
tfohlmeister merged commit 3ec432b into main Jun 19, 2026
1 check passed
@tfohlmeister
tfohlmeister deleted the add-tests branch June 19, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant