Installation
Getting started with TestResult is easy. Just follow these steps:
Add the reporter to your Playwright config:
// playwright.config.js
const reporter = [];
if (process.env.CI) {
reporter.push(['./testresult-reporter.js']);
}
module.exports = defineConfig({
reporter,
// ... rest of your config
});
- Set your environment variables:
export API_KEY= Find in Account Settings
export TEST_SUITE_UUID= Find it on your test suite page
- Run your tests
Results should start showing up in your TestResult account immediately after your test run completes. Paid accounts will have unlimited access to historical runs.