This is a basic template to run pytest with maya.
Run this commands from a command window within the cloned repo directory: ./mayapy.bat -m pytest tests -vv
- Be sure to update the maya version in the
mayapy.bat
file and the maya installation directory if not in the default"C:\Program Files\Autodesk"
set MAYA_LOCATION=C:\Program Files\Autodesk\Maya2024
- Be sure to have to create your virtual environnement and install
pytest