3dsmax and python unit tests

I’m assuming this is possible? I can get max to launch and use unittest to discover and run tests. However it simply prints the errors to the listener and raises the SystemExit exception. I can avoid the exception popup, but how would i get the output of the tests to something like jenkins? Maya just uses stdout so it works as expected. But max gives no such option.

Is there a common way to do max tests from python?

Thanks