cb109 / maxtest

:chart_with_upwards_trend: MAXScript unittesting framework.
BSD 2-Clause "Simplified" License
8 stars 1 forks source link

Dealing with 3ds Max crashes #5

Open cb109 opened 8 years ago

cb109 commented 8 years ago

Unfortunately there are plenty of exceptions and errors that cannot be caught with a try-catch block and that crash 3ds Max completely. When this happens, we have no idea which test failed it and the resulting debugging process is very tedious.

It would be great to have a mechanism that - after discovering all tests - writes to a log file before running any of them and then subsequently updates that log/state file on a per-test basis. That way in case of a crash we could look at this file and see e.g. which tests have been executed and which not and which one crashed the testrun.

This information could also be written to stdout/stderr so it would be visible e.g. in Jenkins, see https://cbuelter.wordpress.com/2014/12/09/writing-to-stdout-and-stderr-from-maxscript/

cb109 commented 8 years ago

This log/state file could also include additional useful information, like execution time per testcase and testsuite. It would probably be a good idea to write this in JUnit XML file format, as we already do with the presenter_jenkins.ms