Tools/Tests/GeometryNodesTests
Adding tests for Geometry Nodes
Geometry Nodes tests are located under lib/tests/modeling/geometry_nodes
- Open Blender.
- Go to Geometry Nodes Tab.
- Add a new Node Tree.
- Add the node to be tested.
- Rename the default object to
test_object. - Save the blend file under any existing category (mesh, points, curves ...)
- If the category doesn't exist, add a new folder with the <category_name>.
Running the test
Test under an existing category
- Compile blender.
- From the terminal, go to the build folder.
- Run
cmake ./. - When running the test for the first time, set the
BLENDER_TEST_UPDATEflag. - Run test using
ctest.
Test from a new category
- Update the
CMakelists.txtlocated intests\pythonto add the new category (Searchgeo_nodein the file). - The rest of the steps are same as above(Tests under Existing category).
More Resources:
Check out the Tests section - Setup, Automated Tests and Python Tests.