diff --git a/allure-behave/src/listener.py b/allure-behave/src/listener.py index dab47789..d070d449 100644 --- a/allure-behave/src/listener.py +++ b/allure-behave/src/listener.py @@ -97,7 +97,7 @@ def stop_test(self, parent_uuid, uuid, name, context, exc_type, exc_val, exc_tb) self.stop_scenario(context['scenario']) def stop_scenario(self, scenario): - should_run = (scenario.should_run_with_tags(self.behave_config.tags) and + should_run = (scenario.should_run_with_tags(self.behave_config.tag_expression) and scenario.should_run_with_name_select(self.behave_config)) should_drop_skipped_by_option = scenario.status == 'skipped' and not self.behave_config.show_skipped should_drop_excluded = self.hide_excluded and (scenario.skip_reason == TEST_PLAN_SKIP_REASON or not should_run)