def process(self, argv): path = argv.path # Make the runner use our view runner = Runner(view=self.view) runner.main(path, plugin=argv.plugin, interactive=False)
def main(): """ Main jig command line tool. Provides access to all the jig user commands. """ from jig.runner import Runner jig = Runner() jig.fromconsole(sys.argv)
def _init_runner(self): """ Initialize a :py:class:`Runner` and returns it. This will configure the runner to collect output and not exit when it encounters an exceptions """ runner = Runner() # Tell the view to collect output instead of printing it runner.view.collect_output = True # Don't exit when an exception occurs so our test can continue runner.view.exit_on_exception = False # Set this up so output() and error() can read the data self.view = runner.view return runner