FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

MeshLib/test_python at master · MeshInspector/MeshLib · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

Contribution Instructions

  1. Install the linting packages: pip3 install pre-commit black isort
  2. When commiting the black & isort check should automatically reformat any edited python code.

To run this yourself you can do:

  • black ./test_python
  • isort ./test_python/ --profile black

Setup Instructions

To run these tests please build MeshLib first, then do following commands on linux:

python3 -m pip install pytest numpy
cd build/Debug/bin # or build/Release/bin
# `xvfb-run -a` gives the mrviewerpy tests a display; without it they skip themselves
xvfb-run -a python3 ./../../../scripts/run_python_test_script.py -d '../test_python'

on mac:

python3 -m pip install pytest numpy
cd build/Debug/bin # or build/Release/bin
python3 ./../../../scripts/run_python_test_script.py -d '../test_python'

on Windows:

py -3 -m pip install pytest numpy
cd source/x64/Debug # or source/x64/Release
py -3 ..\..\..\scripts\run_python_test_script.py -d '..\test_python'

Back | FazBrowse Home | New Git URL