def gen_suite_report(suiteStats, level=0):
	tabs = "    " * level
	report = tabs + "(" + get_status_bit(suiteStats["status"]) + ")" + suiteStats["name"] + "\n"
	level += 1
	for spec in suiteStats["specstats"]:
		tabs = "    " * level
		report += tabs + "(" + get_status_bit(spec["status"]) + ")" + spec["name"] + " (" + str(spec["totalduration"]) + " ms)" + "\n"

		if spec["status"] == "Failed":
			report += tabs + "  -> Failure: " + spec["failmessage"] + "\n"
			report += build_stacktrace(spec["failorigin"], tabs)

		if spec["status"] == "Error":
			report += tabs + "  -> Error: " + spec["error"]["message"] + "\n"
			if spec["error"] in "tagcontext":
				report += build_stacktrace(spec["error"]["tagcontext"], tabs)

	for nestedSuite in suiteStats["suitestats"]:
		report += gen_suite_report(nestedSuite, level + 1) + "\n"

	return report
dataset/ETHPy150Open jcberquist/sublimetext-cfml/src/testbox/test_runner.py/gen_suite_report/swapped operands of `in`