Skip to content

Dev Testing

Emanuele Gissi edited this page Aug 19, 2026 · 2 revisions

ℹ️ Updated to BFDS 7.2.x and Blender 5.2.x

Testing with pytest

Before

Before executing the tests, you need to install your testing dependencies outside and inside the builtin Blender Python interpreter. To get the interpreter location you can use the CLI utility pytest-blender, something like:

# Install pytest outside Blender
python -m pip install pytest pytest-blender

# Get the Blender python path, set the right exe
blender_python="$(pytest-blender --blender-executable ./blender)"

# Check the existence of pip in Blender
$blender_python -m ensurepip

# Install pytest inside Blender
$blender_python -m pip install pytest pytest-blender

After

After installing dependencies, just call the Blender pytest:

cd dev
$blender_python -m pytest

Clone this wiki locally