Wrapper to easily test maya scripts and modules with the powerful pytest framework.
You'll need to install:
- Autodesk Maya (2014+)
- Python (2.7+)
pip install mayatest
Run mayatest in the folder of the script or module.
# To invoke pytest using mayapy from Maya 2017 do:
mayatest -m 2017
# Then the normal usage for pytest applies, e.g. to test specific file:
mayatest -m 2017 --pytest="test_sometest.py"
# to only run test_func
mayatest -m 2017 --pytest="test_sometest.py::test_func"
For more information using pytest go to their docs.
This project is licensed under the MIT License - see the LICENSE.md file for details