# Allure Report Integration Guide This project now supports Allure reporting for Playwright tests. ## 1. Install required packages Run the following command in the project root: ```bash npm install --save-dev allure-playwright allure-commandline ``` ## 2. Update Playwright configuration The reporter is configured in [playwright.config.ts](../playwright.config.ts) with: - `list` reporter for console output - `html` reporter for the default Playwright report - `allure-playwright` reporter to generate Allure result files reporter: [ ['list'], ['html', { open: 'never', outputFolder: 'playwright-report' }], ['allure-playwright', { outputFolder: 'allure-results', suiteTitle: false }], ], ## 3. Add npm scripts The following scripts are available in [package.json](../package.json): ```bash npm run test:allure npm run allure:generate npm run allure:open ``` "scripts": { "test": "playwright test", "test:allure": "playwright test --reporter=list,allure-playwright", "allure:generate": "allure generate allure-results -o allure-report --clean", "allure:open": "allure open allure-report" }, ## 4. Run tests with Allure Execute the suite: ```bash npm run test:allure ``` This creates result files in the `allure-results` folder. ## 5. Generate the HTML report Run: ```bash npm run allure:generate ``` The report is created in the `allure-report` folder. ## 6. Open the report locally Run: ```bash npm run allure:open ``` This opens the generated report in your default browser. ## 7. Notes - The generated Allure output is ignored by Git via [.gitignore](../.gitignore). - If you want to keep the HTML report as well, Playwright still generates its own report in the `playwright-report` folder.