Added script to run tests from the host machine
This commit is contained in:
2
test.sh
Executable file
2
test.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
# usr/bin/env bash
|
||||||
|
docker run -it --volume ${PWD}:/io_scene_psk_psa --volume ${PWD}/io_scene_psk_psa:/addons/io_scene_psk_psa --volume ${PWD}/tests:/tests $(docker build -q .)
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
# This file is meant to be executed inside a Docker container.
|
# usr/bin/env bash
|
||||||
|
# This file is meant to be executed from inside a Docker container.
|
||||||
|
# To run tests on the host system, use the `test.sh` script in the root directory.
|
||||||
export BLENDER_EXECUTABLE=$(cat /blender_executable_path)
|
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
|
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.
|
# Fixes the paths in the coverage report to be relative to the current directory.
|
||||||
|
|||||||
Reference in New Issue
Block a user