@with_setup(prepare_stdout)
def test_output_level_2_fail():
 runner = Runner(feature_name('failed_table'), verbosity=2)
 runner.run()
 assert_stdout_lines_with_traceback(('See it fail ... FAILED\n\n\n<Step: "And this one fails">\nTraceback (most recent call last):\n  File "%(lettuce_core_file)s", line %(call_line)d, in __call__\n    ret = self.function(self.step, *args, **kw)\n  File "%(step_file)s", line 25, in tof\n    assert False\nAssertionError\n\n1 feature (0 passed)\n1 scenario (0 passed)\n5 steps (1 failed, 2 skipped, 1 undefined, 1 passed)\n\nList of failed scenarios:\n  Scenario: See it fail                       # tests/functional/output_features/failed_table/failed_table.feature:2\n\n' % {'lettuce_core_file': lettuce_path('core.py'), 'step_file': abspath(lettuce_path('..', 'tests', 'functional', 'output_features', 'failed_table', 'failed_table_steps.py')), 'call_line': call_line}))

@ with_setup ( prepare_stdout ) def test_output_level_2_fail ( ) : runner = Runner ( feature_name ( 'failed_table' ) , verbosity = 2 ) runner . run ( ) assert_stdout_lines_with_traceback ( ( 'See it fail ... FAILED\n\n\n<Step: "And this one fails">\nTraceback (most recent call last):\n  File "%(lettuce_core_file)s", line %(call_line)d, in __call__\n    ret = self.function(self.step, *args, **kw)\n  File "%(step_file)s", line 25, in tof\n    assert False\nAssertionError\n\n1 feature (0 passed)\n1 scenario (0 passed)\n5 steps (1 failed, 2 skipped, 1 undefined, 1 passed)\n\nList of failed scenarios:\n  Scenario: See it fail                       # tests/functional/output_features/failed_table/failed_table.feature:2\n\n' % { 'lettuce_core_file' : lettuce_path ( 'core.py' ) , 'step_file' : abspath ( lettuce_path ( '..' , 'tests' , 'functional' , 'output_features' , 'failed_table' , 'failed_table_steps.py' ) ) , 'call_line' : call_line } ) )
output with verbosity 2 must show only the scenario names .