def write_report_and_ensure_all_tests_passed(self):
        self.project.write_report("integrationtest.json", render_report(self.test_report))
        self.logger.info("Executed %d integration tests.", self.tests_executed)
        if self.tests_failed:
            raise BuildFailedException("%d of %d integration tests failed." % (self.tests_failed, self.tests_executed))
dataset/ETHPy150Open pybuilder/pybuilder/src/main/python/pybuilder/plugins/python/test_plugin_helper.py/ReportsProcessor.write_report_and_ensure_all_tests_passed/original