{"_id":"@cuteribs/ado-playwright-reporter","name":"@cuteribs/ado-playwright-reporter","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.4":{"name":"@cuteribs/ado-playwright-reporter","version":"0.1.4","description":"Playwright custom reporter that pushes test results (with per-step outcomes) to Azure DevOps Test Cases already associated with an existing Test Run.","main":"src/index.js","type":"module","engines":{"node":">=18"},"keywords":["azure-devops","playwright","reporter","test-plan"],"license":"UNLICENSED","scripts":{"test":"node --test test/*.test.js"},"peerDependencies":{"@playwright/test":">=1.40.0"},"dependencies":{"azure-devops-node-api":"^12.5.0"},"_id":"@cuteribs/ado-playwright-reporter@0.1.4","gitHead":"92e9d7dc009d14ac6df63c843266b3b67e63b781","_nodeVersion":"24.13.0","_npmVersion":"11.5.2","dist":{"integrity":"sha512-zbOgHzCWKCAG76YYSFowzGgSDy68NZI0FEChKXSeP/76wNodY/sM5hwkElhIe0TFXXgw4iRTuqyooMg+0IOENg==","shasum":"f2a5daac01f825521c9fc01464dc90cd7bb53dec","tarball":"https://registry.npmjs.org/@cuteribs/ado-playwright-reporter/-/ado-playwright-reporter-0.1.4.tgz","fileCount":6,"unpackedSize":9981,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCtyFU5+9Y232n5/mwcJXz7T2PRSWOeKE07LDhoA4KaRQIhALByP4Vu/LvZZRBX6BTVvZmSE0zm2wRpvVccN1wG3ip5"}]},"_npmUser":{"name":"cuteribs","email":"ericfine1981@live.com"},"directories":{},"maintainers":[{"name":"cuteribs","email":"ericfine1981@live.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ado-playwright-reporter_0.1.4_1786699779349_0.5608222724387457"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-14T09:29:39.056Z","0.1.4":"2026-08-14T09:29:39.483Z","modified":"2026-08-14T09:29:39.742Z"},"maintainers":[{"name":"cuteribs","email":"ericfine1981@live.com"}],"description":"Playwright custom reporter that pushes test results (with per-step outcomes) to Azure DevOps Test Cases already associated with an existing Test Run.","keywords":["azure-devops","playwright","reporter","test-plan"],"license":"UNLICENSED","readme":"# @cuteribs/ado-playwright-reporter\n\nPlaywright reporter that pushes test results - including per-`test.step()` outcomes - to\nAzure DevOps, into a Test Run that **already exists** (created by an Azure Pipelines\n\"Run functional tests\" / Test Plan build task, or manually). It never creates a run or\ntest points itself; use [`@cuteribs/ado-testplan-cli`](../ado-testplan-cli) to create/link\nthe Test Suites and Test Cases ahead of time.\n\n## Install\n\n```\nnpm install --save-dev @cuteribs/ado-playwright-reporter\n```\n\n## Config\n\n`playwright.config.js`:\n\n```js\nexport default defineConfig({\n  reporter: [\n    ['@cuteribs/ado-playwright-reporter', { config: 'ado.config.json' }],\n    // or inline, skipping the config file:\n    // ['@cuteribs/ado-playwright-reporter', { orgUrl: '...', project: '...' }],\n  ],\n});\n```\n\n`ado.config.json` only needs `orgUrl` and `project` for the reporter (no `planId`):\n\n```json\n{ \"orgUrl\": \"https://dev.azure.com/your-org\", \"project\": \"your-project\" }\n```\n\nEnvironment variables:\n- `AZURE_DEVOPS_PAT` / `SYSTEM_ACCESSTOKEN` - PAT with Test Management (Read & Write).\n- `TEST_RUNID` - the existing ADO Test Run id. If unset, the reporter logs a warning and\n  does nothing (safe no-op for local `npx playwright test` runs).\n\n## Matching results to ADO Test Cases\n\nA Playwright test is matched to an ADO test result in the run by:\n`automatedTestStorage` = relative spec file path, `automatedTestName` = test title -\nthe exact fields `ado-testplan-cli` writes onto each Test Case. If nothing matches, the\ntest is logged as a warning and skipped (nothing is pushed for it).\n\n## What gets pushed per test\n\n- Overall outcome (`Passed`/`Failed`/`Timeout`/`NotExecuted`/`Aborted`), duration, error message.\n- Each `test.step()` as a `subResult` (outcome/duration/error), in source order - visible\n  in ADO as the automated result's data-driven sub-results.\n\n## Notes\n\n- Retries: only the last attempt's result is kept (later `onTestEnd` calls for the same\n  test overwrite earlier ones).\n- This package intentionally duplicates a small amount of config/client code from\n  `ado-testplan-cli` instead of depending on a shared package, per project decision to\n  publish exactly two independent packages.\n","readmeFilename":"README.md","_rev":"1-73a3da22b3b39f1741ba042058600f89"}