Skip to main content

Use allure generate command for Cucumber report generation

Earlier we have discussed allure serve command Which generates a report in temporary folder from the data found in the provided path and then creates a local Jetty server instance, serves generated report and opens it in the default browser.

There is an alternative command to generate report in specific directory:

$ allure generate --clean

This will generate report in folder allure-report. You need to open index.html in your browser. If your report is not loading properly use below command for mac, For Windows you might have different path:

$ "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --allow-file-access-from-files

Once you will hit above command in terminal or console this will open chrome browser. Now you need to paste the path of your file in Chrome. 

Submitted by tgoswami on September 14, 2020

Tarun has 11+ years of experience in Quality Assurance in different domains like Banking, E-commerce, Health and Education.

About

At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.