This is a sample play wright automation using java script.
Steps:
-
Install allure playwright: npm i -D @playwright/test allure-playwright Or add "allure-playwright": "^2.0.0-beta.19" in package.json under devDependencies
-
Update playwright.config.js with: { reporter: [ [ "allure-playwright", { detail: true, outputFolder: "./output/allure/my-allure-results", suiteTitle: false, }, ], ], }
-
After the tests execution - output folder will be generated with raw allure structure then we need to generate allure report by the following command:
allure generate .\output\allure\my-allure-results -o allure-report --clean
- After step-3 a new folder will be created with all allure test results then we need to open that folder by the following command:
allure open allure-report