Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maya Test

Build Status Coverage Status Scrutinizer Code Quality PyPI version License: MIT

Wrapper to easily test maya scripts and modules with the powerful pytest framework.

Getting Started

Prerequisites

You'll need to install:

  • Autodesk Maya (2014+)
  • Python (2.7+)

Installing

pip install mayatest

Usage

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.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Utilize pytest with maya's inbuilt python interpreter to run tests

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages