Hi,

I know there are a couple of questions surrounding Maya unittests out there but 
I didn't find a best practices thread. I am trying to find out what the current 
best way of automating unittests (which rely on pymel, cmds or any other Maya 
internal API) is? I would love to use tox to automate these tests but a quick 
look suggested it's not as easy as I thought.

I see two possible ways of implementing this right now please let me know if 
you see any other.
1. Getting mayapy to play nice with a virtual environment. Probably need to 
write some custom script which sets up the virtual environment for tox to use. 
I tried to tell tox to use mayapy which resulted in some missing file errors 
when tox tried to create the virtual environment.
2. Compiling a Python version which matches mayapy and can be used to create a 
proper virtual environment. In the end we will still want to "import 
maya.standalone" to make the unittests work. Need to compile Python and write 
custom virtual environment creator to create it properly to make all the 
dependencies work.

Using tox would make the whole process very flexible and people know how to use 
it. I hope someone already invested some time and brain power and can share his 
process with the world.

Cheers,
Sebastian 

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/89d07928-e674-4cd4-abb6-94cee650e203%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to