allure-framework / allure-python

Allure integrations for Python test frameworks
https://allurereport.org/
Apache License 2.0
725 stars 237 forks source link

Do not call not existing start_feature method (fixes #629) #645

Open tkratky opened 2 years ago

tkratky commented 2 years ago

Context

Test execution using behave is failing with the latest (2.9.45) allure-behave version on the following error:

HOOK-ERROR in before_feature: AttributeError: 'AllureListener' object has no attribute 'start_feature'
  File "<project-path>/venv/lib/python3.9/site-packages/behave/runner.py", line 564, in run_hook
    self.hooks[name](context, *args)
  File "<project-path>/venv/lib/python3.9/site-packages/allure_behave/hooks.py", line 22, in hook
    allured(*args, **kwargs)
  File "<project-path>/venv/lib/python3.9/site-packages/allure_behave/hooks.py", line 53, in before_feature
    self.listener.start_feature()

https://github.com/allure-framework/allure-python/issues/629

Checklist

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.