Moo-Ack-Productions / bpy-build

A build sytem to make building Blender addons 10 times easier
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

Make Addon Testing Easier #12

Open StandingPadAnimations opened 7 months ago

StandingPadAnimations commented 7 months ago

Right now, some addons like MCprep have unittests to make validate stability. However, a good chunk of test code has to be dedicated to handing stuff between the developer environment and Blender. This makes it harder for most addons to implement tests, and results in complex test code.

To combat this and give developers the ability to write tests without the extreme complexity, I propose we add the ability for BpyBuild to run unittests for addons, handling all the complexities between the developer environment and Blender. This would also add a set of new hooks for accessing test data.

StandingPadAnimations commented 7 months ago

Adding link to Blender's CLI arguments for Python as future reference: https://docs.blender.org/manual/en/latest/advanced/command_line/arguments.html#python-options