> For the complete documentation index, see [llms.txt](https://testingvn.gitbook.io/playwright/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://testingvn.gitbook.io/playwright/ci-cd-and-reporting/setup-allure-report.md).

# Setup Allure Report

1\. Make sure Allure Report is installed. If it's not, follow the installation \[instructions(https\://allurereport.org/docs/install/). Note that Allure Report requires Java.

2. Install the Allure Playwright adapter and make sure that the Playwright framework itself is also listed in the project's dependencies.

```sh
npm install --save-dev @playwright/test allure-playwright
```

3. In the `playwright.config.ts` file, add Allure Playwright as a reporter.

```typescript
export default defineConfig({
  // ...
  reporter: [["line"], ["allure-playwright"]],
});

```

4. Run Test

```sh
npx playwright test
```

5. #### Generate a report <a href="#id-3-generate-a-report" id="id-3-generate-a-report"></a>

Finally, run Allure to convert the test results into an HTML report. This will automatically open your browser to view the report.

```sh
allure serve allure-results
```
