Utilize Allure Reporting System
If you want to enhance your testing experience, consider using the Allure HTML report. Once installed, you can set it up in your playwright configuration file like this:
playwright.config.ts
{
reporter: [["line"], ["allure-playwright"]];
}
You can also specify the same settings through the command line:
npx playwright test --reporter=line,allure-playwright
After configuring, you will be able to generate HTML reports and maintain a history of your tests as shown below:
Maintaining Test History
The Allure test report not only provides information about the latest test run but also allows you to compare it with previous reports by keeping a history.
https://i.sstatic.net/nAcH7.png
In a test report that includes history, you can:
- View past statuses of tests (refer to Details panel → History tab),
- Identify tests that have changed status since the last report (see Sorting and filtering → Filter tests by marks),
- Track changes in specific values over time (check out Graphs).