def run(files, temp_folder, arg=None):
try:<EOL><INDENT>import pytest<EOL><DEDENT>except ImportError:<EOL><INDENT>return NO_PYTEST_MSG<EOL><DEDENT>cmd = "<STR_LIT>"<EOL>if not bash(cmd).value():<EOL><INDENT>return NO_PYTEST_COV_MSG<EOL><DEDENT>arg = arg or SCORE<EOL>cmd = "<STR_LIT>"<EOL>output = bash(cmd).value()<EOL>output = output.rstrip().splitlines()<EOL>try:<EOL><INDENT>score = float(re.search("<STR_LIT>", output[-<NUM_LIT:2>]).group(<NUM_LIT:1>))<EOL><DEDENT>except:<EOL><INDENT>return "<STR_LIT:\n>".join(("<STR_LIT>",<EOL>"<STR_LIT:\n>".join(output),<EOL>"<STR_LIT>"))<EOL><DEDENT>if score >= float(arg):<EOL><INDENT>return False<EOL><DEDENT>return ("<STR_LIT>"<EOL>"<STR_LIT>".format(score, arg)<EOL>)<EOL>
Check tests coverage.