def METHOD_NAME(filename):
    suite = unittest.makeSuite(TestIronPython)
    with open(filename, "w") as f:
        f.write("Ironpython Unit Tests Started\n\n")
        f.write("Start time: {}\n\n".format(datetime.now()))
        runner = unittest.TextTestRunner(stream=f, verbosity=2)
        result = runner.run(suite)
        num_runs = result.testsRun
        num_errors = len(result.errors)
        num_failures = len(result.failures)
        f.write("\n<unittest.runner.TextTestResult Total Test run={}>\n".format(num_runs))
        if not result.wasSuccessful():
            f.write("\n<unittest.runner.TextTestResult errors={}>\n".format(num_errors+num_failures))