Blender 3.3 Addon Tester Free 2024 Download
Blender can be extended with python addons.
When an addonsreleased, it’s developped to work with the current version of Blender.
But over time as Blender releases new versions, the Blender API changes, leading to the addon to eventually breaking and stop working.
Currently there’s no native testing environment that:
Allows an addon to be tested against multiple versions of blender and multiple OSs (ubuntu, windows and macosx)
Used an industry standard of testing, i.e. pytest
Plugs into a continuous integration tool, i.e. Github Actions, Travis CI
Ability to test a passing addon against the nightly builds, to catch API breaks as close to when they happen
Code coverage of the addon. Used to assess comprehensivness of the tests.
What does blender-addon-tester do
This python module allows command line pytesting to be performed on different versions of blender. It will:
download and maintain different versions of blender locally.
install the addon under test into a location accessible by the respective version of blender.
execute a series of tests, by default, located in the tests directory. These tests are written in the pytest format.
Once the addon has been completed and the tests have been written, they are checked in to github.
They can be run against a continous integration tool.
There’s currently support for both Github Actions and Travis CI.
Usage
It can be confusing with blender as it has an internal version of python that is different from the system python.
blender-addon-tester is install to the system python and is used to call different versions of blender.
It is inside this instance of blender that the addon under test gets installed.
Post Comment