Minor README cleanup & added pycov for local testing

This commit is contained in:
Colin Basnett
2025-04-06 00:44:54 -07:00
parent 289361f3e1
commit 5cfb883a32
6 changed files with 30 additions and 13 deletions

6
tests/test.sh Normal file
View File

@@ -0,0 +1,6 @@
# This file is meant to be executed inside a Docker container.
export BLENDER_EXECUTABLE=$(cat /blender_executable_path)
pytest --cov-report xml --cov=/root/.config/blender -svv tests --blender-executable $BLENDER_EXECUTABLE --blender-addons-dirs ../addons
# Fixes the paths in the coverage report to be relative to the current directory.
sed -i 's|/root/.config/blender||g' coverage.xml
sed -i 's|4.4/scripts/addons/io_scene_psk_psa/||g' coverage.xml