def runner(self): runner = runners.BaseRunner(self._example_collector(), self._loader(), self._reporter(), self.settings.tags) if self.settings.enable_code_coverage: runner = \ runners.CodeCoverageRunner(runner, self.settings.code_coverage_file) return runner
def create_runner(self): settings = self.create_settings() runner = runners.BaseRunner(self.create_example_collector(), loader.Loader(settings.match_name), self.create_reporter()) if settings.enable_code_coverage: runner = runners.CodeCoverageRunner(runner, settings.code_coverage_file) if settings.enable_file_watcher: runner = runners.FileWatcherRunner(runner) return runner