Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

ofxPlotFinders tests

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

Run

cd addons/ofxPlotFinders/example-test
make -j4
bin/example-test.exe

Use the Test Engine UI to run plotfind/unit/* and plotfind/golden/*.

Coverage

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.

Requirements

  • OFX_IMGUI_ENABLE_TEST_ENGINE in the example config.make (already set)
  • ofxImGuiTestSuite submodule: libs/imgui_test_engine