コード例 #1
0
ファイル: application_factory.py プロジェクト: vicdoz/mamba
    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
コード例 #2
0
    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