@with_setup(step_runner_environ)
def test_scenarios_inherit_feature_tags():
 feature = Feature.from_string(FEATURE10)
 scenarios_ran = []
 @after.each_scenario
 def just_register(scenario):
  scenarios_ran.append(scenario.name)
 result = feature.run(tags=['tag'])
 assert result.scenario_results
 assert_equals(scenarios_ran, ['1st one', '2nd one'])

@ with_setup ( step_runner_environ ) def test_scenarios_inherit_feature_tags ( ) : feature = Feature . from_string ( FEATURE10 ) scenarios_ran = [ ] @ after . each_scenario def just_register ( scenario ) : scenarios_ran . append ( scenario . name ) result = feature . run ( tags = [ 'tag' ] ) assert result . scenario_results assert_equals ( scenarios_ran , [ '1st one' , '2nd one' ] )
tags applied to features are inherited by scenarios .