A framework to test compositor nodes. The general idea is to create a node tree,Added support for compositor tests. render an image and compare the resulting render to a reference (i.e.Compositor tests can be added, expected) image.
The test can be called usingexecuted and viewed in a similar way to cycles
`BLENDER_VERBOSE=1 ctest -R compositor --verbose`
If a test fails, it is possible for the user to open blender and inspect the nodes of the failing test. The class `OperatorNTests` will print a command corresponding that the user can use to open blender with the failing test.
The tests can be updated usingand other render engines tests.
Running test:
`BLENDER_TEST_UPDATE=1 ctest -R compositor`ctest -R compositor
Updating test:
BLENDER_TEST_UPDATE=1 ctest -R compositor
Viewing test results:
typically saved under `build_folder/tests/compositor/report.html`
{F8873377}
Attached `compositor.zip` must be extracted to `lib/tests` and contains two tests for demo purpose. A successful run should produce a report like the following:
{F8873413}