Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 def _execute_assigned_task(self):
     bolt.run_task(self.task_name, self.continue_on_error)
     logging.info('Press <ctrl+c> to exit')
Exemplo n.º 6
0
 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)