An Allure adapter for Behave.
- Learn more about Allure Report at https://allurereport.org
- π Documentation β discover official documentation for Allure Report
- β Questions and Support β get help from the team and community
- π’ Official announcements β stay updated with our latest news and updates
- π¬ General Discussion β engage in casual conversations, share insights and ideas with the community
- π₯οΈ Live Demo β explore a live example of Allure Report in action
$ pip install allure-behave
$ behave -f allure_behave.formatter:AllureFormatter -o %allure_result_folder% ./features
$ allure serve %allure_result_folder%
The current implementation of behave-parallel makes some allure features inaccessible. In this case you need to patch your environment.py files instead of using the formatter. If you don't use environment.py, just create a new one that calls Allure Behave like that:
from allure_behave.hooks import allure_report
### your code
allure_report("path/to/result/dir")
Learn more from Allure behave's official documentation.