def execute_with_coverage(self): import coverage.control as cov controller = cov.Coverage(auto_data=False, branch=True, source=self.include_dir) controller.start() bolt.run_task(self.task_name) controller.stop() controller.html_report(directory=self.out_dir)
def execute_conttest(**kwargs): import conttest.conttest as ct config = kwargs.get('config') task_name = config.get('task') directory = config.get('directory') or './' logging.info('Executing continously "{task}" at {directory}'.format( task=task_name, directory=directory)) continue_on_error = True ct.watch_dir(directory, lambda: bolt.run_task(task_name, continue_on_error), method=ct.TIMES)
def execute_task(self): import conttest.conttest as ct ct.watch_dir(self.directory, lambda: bolt.run_task(self.task_name, self.continue_on_error), method=ct.TIMES)
def _execute_assigned_task(self): bolt.run_task(self.task_name, self.continue_on_error) logging.info('Press <ctrl+c> to exit')
def execute_task(self): import conttest.conttest as ct ct.watch_dir( self.directory, lambda: bolt.run_task(self.task_name, self.continue_on_error), method=ct.TIMES)