Exemplo n.º 1
0
 def topic(self):
     planner = ExecutionPlanner(
         {'dummySuite': set([UnrunnableBatch])},
         set([r'UnrunnableBatch']),
         set([])
     )
     return planner.plan()
Exemplo n.º 2
0
 def topic(self):
     planner = ExecutionPlanner(
         {'dummySuite': set([UnrunnableBatch])},
         set([r'UnrunnableBatch']),
         set([])
     )
     return planner.plan()
Exemplo n.º 3
0
 def topic(self):
     planner = ExecutionPlanner(
         {'dummySuite': set([UnrunnableBatch, SomeLoneBatch])},
         set([]),
         set([r'testB1_0'])
     )
     return planner.plan()
Exemplo n.º 4
0
 def topic(self):
     planner = ExecutionPlanner(
         {'dummySuite': set([UnrunnableBatch, SomeLoneBatch])},
         set([]),
         set([r'testB1_0'])
     )
     return planner.plan()
Exemplo n.º 5
0
 def topic(self):
     dummySuite = {'dummySuite': set([SubcontextHasSkipDecorator])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan, False)
     results = runner.run()
     return results
Exemplo n.º 6
0
 def topic(self):
     dummySuite = {'dummySuite': set([SkipIsRaisedFromTopic])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan, False)
     results = runner.run()
     return results
Exemplo n.º 7
0
 def topic(self):
     dummySuite = {'dummySuite': set([WhenTeardownIsDefined])}
     execution_plan = ExecutionPlanner(
         dummySuite, set(), set(['excluded_vows_do_not_block'])).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan, False)
     return runner.run()
Exemplo n.º 8
0
 def topic(self):
     dummySuite = {
         'dummySuite': set([OverlappingIgnores1, OverlappingIgnores2])
     }
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan)
     return runner.run()
Exemplo n.º 9
0
    def run(cls, on_vow_success, on_vow_error, capture_error=False):
        #   FIXME: Add Docstring
        #
        #       *   Used by `run()` in `cli.py`
        #       *   Please add a useful description if you wrote this! :)

        execution_plan = ExecutionPlanner(cls.suites,
                                          set(cls.exclusion_patterns),
                                          set(cls.inclusion_patterns)).plan()

        runner = VowsRunner(cls.suites, cls.Context, on_vow_success,
                            on_vow_error, execution_plan, capture_error)
        return runner.run()
Exemplo n.º 10
0
 def run(cls, on_vow_success, on_vow_error, capture_error=False):
     # Run batches in series
     r = VowsResult()
     for suite, batches in Vows.suites.items():
         for batch in batches:
             suites = {suite: [batch]}
             plan = ExecutionPlanner(suites, set(Vows.exclusion_patterns),
                                     set(Vows.inclusion_patterns)).plan()
             result = VowsRunner(suites, Vows.Context, on_vow_success,
                                 on_vow_error, plan, capture_error).run()
             r.contexts += result.contexts
             r.elapsed_time += result.elapsed_time
     return r
Exemplo n.º 11
0
 def topic(self):
     dummySuite = {'dummySuite': set([PrintSomeStuff])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan, True)
     return runner.run()
Exemplo n.º 12
0
 def topic(self):
     dummySuite = {'dummySuite': set([WhenTeardownRaisesException])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan, False)
     return runner.run()