Allure report for Behave Framework

the hierarchy of your Behave framework should be:

 —–|features
——|—|steps
——|allure
——|—|results
——|—|reports

1. Install allure-behave package

pip3 install allure-behave

npm install -g allure-commandline –save-dev

2. Run the test suite and export result to allure format file

behave -f allure_behave.formatter:AllureFormatter -o allure/results ./features

here is files in the results folder after running the suite:

behave_output_allure_format

3. Generate report from the raw log output above

allure generate allure/results/ -o allure/reports

allure_report_folder

4. Open index.html in reports folder

allure_example

reference source:

https://docs.qameta.io/allure/#_behave

Leave a comment