ESPSomfy-RTS/test
cjkas 48676b05c3 test: cover the JSON formatter
Tests BufferedJsonFormatter output: nesting and commas, number and bool
values, skipped null strings and escaping.  A canary after the buffer
catches writes past its end.

Three fail: control characters other than \b\f\n\r\t aren't escaped,
calcEscapedLength skips the first character, and so a value starting
with an escaped character can be written one byte past the buffer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 13:30:14 +02:00
..
stubs test: cover the frame codec and command names 2026-10-11 13:20:39 +02:00
test_frame test: cover the frame codec and command names 2026-10-11 13:20:39 +02:00
test_json test: cover the JSON formatter 2026-10-11 13:30:14 +02:00
test_utils test: add native Unity env with Utils tests 2026-10-11 12:54:39 +02:00
README init 2026-03-10 20:23:48 +01:00

This directory is intended for PlatformIO Test Runner and project tests.

Unit Testing is a software testing method by which individual units of
source code, sets of one or more MCU program modules together with associated
control data, usage procedures, and operating procedures, are tested to
determine whether they are fit for use. Unit testing finds problems early
in the development cycle.

More information about PlatformIO Unit Testing:
- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html