The rig sim receives Art-Net (UDP 6454, answers ArtPoll) and DDP (each port the room's DDP strips use) in sim_net.c and passes changed universes and pixels to the page over /sim/ws, now with a kind byte in front of each binary frame. Rooms gain fixture types: ddp strips, artnet pixel strips, and artnet cans and movers that read named channels from the room's dmx_definitions (the qlcplus stage map's format). Overlapping DMX channels are refused. Cans and movers are decoded and drawn as in the qlcplus stage simulator (dmx.js, dmx-draw.js). In Edit mode: pick a type to add, edit port/offset/universe/address/colour order/definition, see a can's or mover's live channels, make a controller output aimed at the sim and send its test. The room dialog lists DMX definitions, with presets, a channel editor, and .qxf and stage map import. GET /sim/api/dmx shows what the receiver has had. Tests: test/api/test_sim_net.py and test/browser/dmx_decode.test.mjs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
API tests
HTTP tests against a running controller, ported from the Python app's endpoint tests (tests/test_endpoints_pytest.py and tests/test_endpoints.py) on both the animation-engine and main lines, plus main's bundle, audio, group and sequence tests where they work over HTTP. They need pytest, requests and websocket-client.
make test-api HOST=10.1.1.180
or python3 -m pytest test/api --host <ip> (or set LED_HOST). Without a host every test is skipped.
The tests create and delete profiles, presets, zones and so on. The sequence tests switch mic timing off and run the beat clock at 200 BPM for a few seconds; mic timing is switched back on afterwards. Before the run they save every collection (GET /db/<name>), and afterwards they write each one back (PUT /db/<name>). Zone play and preset send do go out over ESP-NOW. They use made-up driver names (pytest-a, pytest-nobody) so real drivers ignore them.
Marking a missing feature
helpers.missing("<feature>") marks a test for behaviour the firmware does not have yet. It is a strict xfail: the test shows as x, and fails as XPASS(strict) once the feature works, so the marker gets removed. No test carries it now. python3 -m pytest test/api --host <ip> -rx lists marked tests.
Not ported
- the model, engine and helper unit tests (
tests/models/,tests/engine_tests/, most ofmain'stests/test_*.py), which test Python modules that have no C counterpart; - the Wi-Fi/TCP/UDP driver test servers and the bridge tests (the controller has no bridge or Wi-Fi driver transport).
The checks on exact driver messages became checks on status codes and replies, because ESP-NOW frames can't be captured from outside the board.
The Selenium UI tests are in test/browser/ (make test-browser HOST=<ip>).