Tests use ofxImGuiTestSuite (IM_REGISTER_TEST + IM_CHECK_* macros).
| File | Role |
|---|---|
PlotFinderTestHelpers.h |
Checkerboard image, PlotDoc setup, stats helpers |
PlotFinderTests.cpp |
RegisterPlotFinderTests() — all registered tests |
../example-test/ |
OF app that wires ImGui + test engine |
cd addons/ofxPlotFinders/example-test
make -j4
bin/example-test.exeUse the Test Engine UI to run plotfind/unit/* and plotfind/golden/*.
| Category | Tests |
|---|---|
| unit | Registry count, PlotFinderId roundtrip, capability table, Composite orchestrator, rectMask, masked pixels, average brightness, progress clamp |
| golden | Path count / length / bounds on 64×64 checkerboard (Grid, Hatch, Contours, Stippling, Potrace, Maze) |
| golden | generate_all_finders — every registered finder completes PlotDoc::generateLayer |
Golden tolerances are smoke guards; tighten per-finder when you add reference images.
OFX_IMGUI_ENABLE_TEST_ENGINEin the exampleconfig.make(already set)- ofxImGuiTestSuite submodule:
libs/imgui_test_engine