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
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
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()
def run(cls, on_vow_success, on_vow_error): # FIXME: Add Docstring # # * Used by `run()` in `cli.py` # * Please add a useful description if you wrote this! :) runner = VowsRunner(cls.suites, cls.Context, on_vow_success, on_vow_error, cls.exclusion_patterns) return runner.run()
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()
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()
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()
def run(cls, on_vow_success, on_vow_error): # Run batches in series r = VowsResult() for suite, batches in Vows.suites.items(): for batch in batches: result = VowsRunner({suite: [batch]}, Vows.Context, on_vow_success, on_vow_error, Vows.exclusion_patterns).run() r.contexts += result.contexts r.elapsed_time += result.elapsed_time return r
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
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()
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()
def test_when_not_have_olders_topics(): r = VowsRunner(None, None) assert_it([], r.pop_topics([]))
def test_when_have_a_old_topic(): r = VowsRunner(None, None) assert_it([1], r.pop_topics([1]))
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()
def test_when_have_2_old_topics(): r = VowsRunner(None, None) assert_it([2], r.pop_topics([1, 2]))
def test_when_the_last_topic_is_none_return_the_parent_value(): r = VowsRunner(None, None) assert_it([1], r.pop_topics([1, None, None, None]))
def test_when_should_get_a_specifc_num_of_topics(): r = VowsRunner(None, None) assert_it([5, 4, 3], r.pop_topics([1, 2, 3, 4, 5], num=3))
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()
def test_when_get_topics_form_contexts_that_not_have_topic(): r = VowsRunner(None, None) assert_it([5, 3, 2], r.pop_topics([1, 2, 3, None, 5, None], num=3))