Open KaiGeffen opened 10 years ago
In the interest of testing code, restructure all of the existing code to an MVC structure (Model View Control) similar to this image: http://blenderartists.org/forum/attachment.php?attachmentid=282712&d=1389639234
Afterwards, write tests for all code that should have them. Code that has huge 'View' sections, such as cursor movement, should not be tested, while code that is largely 'Model', such as determining movement paths, should be tested.
In the interest of testing code, restructure all of the existing code to an MVC structure (Model View Control) similar to this image: http://blenderartists.org/forum/attachment.php?attachmentid=282712&d=1389639234
Afterwards, write tests for all code that should have them. Code that has huge 'View' sections, such as cursor movement, should not be tested, while code that is largely 'Model', such as determining movement paths, should be tested.