Basic TDD for Maya and Nuke for pipeline TDs
GPL-3.0 License
Basic setup for Test Driven Development in Maya and Nuke.
We will be testing and creating a custom menu in Nuke and Maya.
This sets up a scenario where this git repository is the pipeline system's root code repository, where all the artists pipeline tools and setup will be located.
The setup is not perfect, it is just for demonstration purposes.
Each folder within the repository are a module, either for a specific application like Nuke or Maya, or globally used routines, e.g. for file system.
pipelineSysDir
to the location where you cloned your repositoryps_nuke/menu.py
into your Nuke's menu.py
e.g..nuke/menu.py
ps_maya/userSetup.py
into your Maya scriptsuserSetup.py
e.g. in My Document's maya/scripts/userSetup.py
Run Nuke, you should be able to see a dialog at startup asking if you want to run tests.
If you select Yes
, then tests will be run to see if what we've
written/created satisfies the conditions that dictate we've successfully
created a custom menu in Nuke called 'My Menu'
To see the results, check the Nuke console.
If you select No
, then tests will NOT be run so whatever is written will
just be executed without being tested.
Either way, a menu called "My Menu" should be created to the right of the help menu.
If not and you chosen Yes
, then a test failure should appear in the
Nuke's console
Run Maya, you should be able to see a dialog at startup asking if you want to run tests.
If you select Yes
, then tests will be run to see if what we've
written/created satisfies the conditions that dictate we've successfully
created a custom menu in Maya called 'My Menu'
To see the results, check the Maya output window/console.
If you select No
, then tests will NOT be run so whatever is written will
just be executed without being tested.
Either way, a menu called "My Menu" should be created to the right of the help menu.
If not and you chosen Yes
, then a test failure should appear in the
Maya's output window/console
See screenshots in the doc folder for examples of the setup in action.
See the Wiki (In Progress) for more information