Happy New Year.
The following might be interesting for developers who wish to write unit tests for their MAXScript code.
Backing up my code with unit tests gets more and more important to me.
Roughly two month ago, I started developing a unit testing framework for MAXScript.
It is inspired by cppunit and Pythons unittest framework.
It currently runs over 600 tests, growing.
Using it on a daily basis, gives me confidence to make it available to a wider audience.
Features:
[ul]
[li]discovers tests
[/li][li]distinguishes between error, failed and passed tests
[/li][li]reports filepath & line number of a failed test
[/li][li]supports test suites with setUp and tearDown
[/li][li]comprehensive test results outputted to the listener
[/li][li]current asserts are: equals, notEquals, assertTrue, assertFalse, raises, notRaises
[/li][/ul]
It is written for Max2011 and doesn’t support the new Assert methods of Max2012.
Yesterday I made maxtest open source.
It is hosted under Google Code within the 3ds-max-dev project. A repository created by Christopher Diggins from Autodesk.
Try the example.ms file, it will run the test inside test_example.ms file.
Documentation and more examples are coming soon.
My goal is to maintain and add features to the framework and collaborate with the community.
Greets,
Pixelbaker