def main():
r = {"<STR_LIT:test>":[], "<STR_LIT:time>":[]}<EOL>failurestrings = []<EOL>for test in glob.glob('<STR_LIT>'):<EOL><INDENT>s = time.time()<EOL>sys.stderr.write('<STR_LIT>'.format(test))<EOL>test = os.path.splitext(test)[<NUM_LIT:0>]<EOL>suite = unittest.TestLoader().loadTestsFromName(test)<EOL>result = unittest.TestResult()<EOL>suite.run(result)<EOL>e = time.time()<EOL>if result.wasSuccessful():<EOL><INDENT>sys.stderr.write('<STR_LIT>')<EOL>r["<STR_LIT:test>"].append(test)<EOL>r["<STR_LIT:time>"].append(float(e-s)/<NUM_LIT>)<EOL><DEDENT>else:<EOL><INDENT>sys.stderr.write('<STR_LIT>')<EOL>for (testcase, failstring) in result.failures + result.errors:<EOL><INDENT>failurestrings.append(failstring)<EOL><DEDENT><DEDENT><DEDENT>if not failurestrings:<EOL><INDENT>sys.stderr.write('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>sys.stderr.write('<STR_LIT>')<EOL>for fstring in failurestrings:<EOL><INDENT>sys.stderr.write('<STR_LIT>'.format(fstring))<EOL><DEDENT><DEDENT>r = pd.DataFrame(r)<EOL>r["<STR_LIT>"] = ["<STR_LIT:y>" if x><NUM_LIT:10> else "<STR_LIT:n>" for x in r["<STR_LIT:time>"]]<EOL>r.to_csv("<STR_LIT>", index=False)<EOL>
Runs the tests.