Jenkins Allure Report – Behave


  • Install allure-behave library (through shell command from requirements.txt)
pip install allure-behave
  • Go to Manage Jenkins -> Manage Plugins -> Available
  • Search for Allure Jenkins Plugin, install and restart Jenkins after download

  • Go to Manage Jenkins -> Global Tool Configuration
  • Check for the Allure Commandline section and name it; say, Allure

  • Now, open the automation job and click on Configure
  • Add the following behave exec command in Execute shell (MAC) or Python builder (Windows) to generate the .json report

behave -f allure_behave.formatter:AllureFormatter -o allure-results features/scenarios/*.feature
  • Make the following setup to generate reports from the .json file
  • Add Post-build Actions -> Allure Report
  • Set the same path as given in the runner; say, allure-results

  • Finally, check the following allure results after the test run

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s