예제 #1
0
 def _init_debugger_controller(self):
     step_collection = DextIR(
         executable_path=self.context.options.executable,
         source_paths=self.context.options.source_files,
         dexter_version=self.context.version)
     step_collection.commands = get_command_infos(
         self.context.options.source_files)
     debugger_controller = DefaultController(self.context, step_collection)
     return debugger_controller
예제 #2
0
    def _init_debugger_controller(self):
        step_collection = DextIR(
            executable_path=self.context.options.executable,
            source_paths=self.context.options.source_files,
            dexter_version=self.context.version)

        step_collection.commands, new_source_files = get_command_infos(
            self.context.options.test_files, self.context.options.source_root_dir)

        self.context.options.source_files.extend(list(new_source_files))

        if 'DexLimitSteps' in step_collection.commands:
            debugger_controller = ConditionalController(self.context, step_collection)
        else:
            debugger_controller = DefaultController(self.context, step_collection)

        return debugger_controller