{"_id":"@bun913/playwright-testrail-reporter","_rev":"5-fc3663f7c6862a902fa43135da2c7d3e","name":"@bun913/playwright-testrail-reporter","dist-tags":{"latest":"0.11.0"},"versions":{"0.9.0":{"name":"@bun913/playwright-testrail-reporter","version":"0.9.0","author":{"name":"bun913"},"_id":"@bun913/playwright-testrail-reporter@0.9.0","maintainers":[{"name":"bun913","email":"nagasima.romance@gmail.com"}],"homepage":"https://github.com/bun913/playwright-testrail-reporter","dist":{"shasum":"30f82f36e0216cd9a968f6a88418d900f6355c11","tarball":"https://registry.npmjs.org/@bun913/playwright-testrail-reporter/-/playwright-testrail-reporter-0.9.0.tgz","fileCount":28,"integrity":"sha512-eswdlb2NJnOIN3GdpQCS48icaQ+9geEuJ0qq1zcK8u3kGLLUntgJ/RiAWAOfooqkzqnFfc2EXoOu1NKuuKRNBA==","signatures":[{"sig":"MEYCIQCmUgxzPEGdmUU2B+6DHb9OjIOCZqpcf4XSvX4cUbkihQIhAIGf5jBbCj13qLlhVsrpMWKT/a3w0r/klKDNRFcj5oMJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47625},"main":"./dist/index.es.js","type":"module","gitHead":"0be7c68393f55ddd923d88443a76069a2b73afa7","private":false,"scripts":{"dev":"vite","test":"vitest ./test --reporter=verbose --coverage","build":"tsc && vite build","format":"biome format --write ./src","test:ci":"vitest run ./test --silent --coverage --reporter=verbose"},"_npmUser":{"name":"bun913","email":"nagasima.romance@gmail.com"},"_npmVersion":"10.8.2","description":"A Playwright reporter that integrates with TestRail to report test results.","directories":{},"_nodeVersion":"20.18.1","dependencies":{"axios":"^1.8.3","@playwright/test":"^1.51.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.0","vitest":"^3.0.9","typescript":"~5.7.2","@types/node":"^22.13.10","@biomejs/biome":"^1.9.4","@vitest/coverage-v8":"^3.0.9"},"_npmOperationalInternal":{"tmp":"tmp/playwright-testrail-reporter_0.9.0_1742394349793_0.9377976237264147","host":"s3://npm-registry-packages-npm-production"}},"0.9.7":{"name":"@bun913/playwright-testrail-reporter","version":"0.9.7","author":{"name":"bun913"},"_id":"@bun913/playwright-testrail-reporter@0.9.7","maintainers":[{"name":"bun913","email":"nagasima.romance@gmail.com"}],"homepage":"https://github.com/bun913/playwright-testrail-reporter","dist":{"shasum":"3a9cc19190a2bc19b368e6f7dcfe24cc2b832a33","tarball":"https://registry.npmjs.org/@bun913/playwright-testrail-reporter/-/playwright-testrail-reporter-0.9.7.tgz","fileCount":19,"integrity":"sha512-cOXfKWzWOXnucFlu6Z6iGznlVU0YcrxloGERmbElv5YA88XYGfTVltdGsHsd6Bc4DKbTyCCsRXLrMUnKY/qxEQ==","signatures":[{"sig":"MEUCID/5wfDReZAYeohaSd/XqIxxNktTAKO4VSNaNkYH4Se2AiEA6pQZvd7wlwNdtw/o6DjQgsTNzgYGoBBQogZ8xDJQ4O8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29632},"main":"./dist/index.es.js","type":"module","gitHead":"375c2498199493862a23e71884fa6257abfc57ff","private":false,"scripts":{"dev":"vite","test":"vitest ./test --reporter=verbose --coverage","build":"tsc && vite build","format":"biome format --write ./src","test:ci":"vitest run ./test --silent --coverage --reporter=verbose"},"_npmUser":{"name":"bun913","email":"nagasima.romance@gmail.com"},"_npmVersion":"10.8.2","description":"A Playwright reporter that integrates with TestRail to report test results.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"axios":"^1.8.3","@playwright/test":"^1.51.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.0","vitest":"^3.0.9","typescript":"~5.7.2","@types/node":"^22.13.10","@biomejs/biome":"^1.9.4","@vitest/coverage-v8":"^3.0.9"},"_npmOperationalInternal":{"tmp":"tmp/playwright-testrail-reporter_0.9.7_1742394883314_0.3091181890965755","host":"s3://npm-registry-packages-npm-production"}},"0.9.9":{"name":"@bun913/playwright-testrail-reporter","version":"0.9.9","author":{"name":"bun913"},"_id":"@bun913/playwright-testrail-reporter@0.9.9","maintainers":[{"name":"bun913","email":"nagasima.romance@gmail.com"}],"homepage":"https://github.com/bun913/playwright-testrail-reporter","dist":{"shasum":"83ac90f11de6d41f84890a5c445739c0dd9d6de0","tarball":"https://registry.npmjs.org/@bun913/playwright-testrail-reporter/-/playwright-testrail-reporter-0.9.9.tgz","fileCount":20,"integrity":"sha512-+hYSLEDXZ43T0Tanx6yGCitqgbKQ9v2se8BSfln1ykVBS2tKHtJd8nS1xeM2S33nG/HvZkD4o7w6oNZf+g7YtA==","signatures":[{"sig":"MEYCIQDK+HMPDKP03hzeE/Uy8wN7CU6BtdU3i3+cflPRLosTkAIhAKmE4dQhVeObnE7Eyhi3DYtIZsVmOkF8+n6t9pP8oqoG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86565},"main":"./dist/index.es.js","type":"module","gitHead":"84a038a5124e7a4d63655e25b166ffbc9b6ddfcb","private":false,"scripts":{"dev":"vite","test":"vitest ./test --reporter=verbose --coverage","build":"tsc && vite build","format":"biome format --write ./src","test:ci":"vitest run ./test --silent --coverage --reporter=verbose"},"_npmUser":{"name":"bun913","email":"nagasima.romance@gmail.com"},"_npmVersion":"10.8.2","description":"A Playwright reporter that integrates with TestRail to report test results.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"axios":"^1.8.3","@playwright/test":"^1.51.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.0","vitest":"^3.0.9","typescript":"~5.7.2","@types/node":"^22.13.10","@biomejs/biome":"^1.9.4","@vitest/coverage-v8":"^3.0.9"},"_npmOperationalInternal":{"tmp":"tmp/playwright-testrail-reporter_0.9.9_1742395187179_0.4483578075532322","host":"s3://npm-registry-packages-npm-production"}},"0.10.0":{"name":"@bun913/playwright-testrail-reporter","version":"0.10.0","author":{"name":"bun913"},"_id":"@bun913/playwright-testrail-reporter@0.10.0","maintainers":[{"name":"bun913","email":"nagasima.romance@gmail.com"}],"homepage":"https://github.com/bun913/playwright-testrail-reporter","dist":{"shasum":"21dcac986d6341aa7790db4516d2dfac76fb0ffc","tarball":"https://registry.npmjs.org/@bun913/playwright-testrail-reporter/-/playwright-testrail-reporter-0.10.0.tgz","fileCount":19,"integrity":"sha512-u+A39bT6Bnm3dCL1w48wsad6JCQzPTQOwYx9UCfPSPev86+SYnObxO0J+col7Ug9ot5R6WwoxAYsEaN3fchHhA==","signatures":[{"sig":"MEUCIADYzBTguHUhUG4FIztwEwPEdhJll9KKW86nErE/hzoyAiEA+TO4FllwUE1pMq2csfSwLsxpFnD5JsuFQ3SHX7FL84s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84939},"main":"./dist/index.es.js","type":"module","gitHead":"3d2cf500a0841317d0b15083bc3037d119159a1c","private":false,"scripts":{"dev":"vite","test":"vitest ./test --reporter=verbose --coverage","build":"tsc && vite build","format":"biome format --write ./src","test:ci":"vitest run ./test --silent --coverage --reporter=verbose"},"_npmUser":{"name":"bun913","email":"nagasima.romance@gmail.com"},"_npmVersion":"10.8.2","description":"A Playwright reporter that integrates with TestRail to report test results.","directories":{},"_nodeVersion":"20.19.4","dependencies":{"axios":"^1.8.3","@playwright/test":"^1.51.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.0","vitest":"^3.0.9","typescript":"~5.7.2","@types/node":"^22.13.10","@biomejs/biome":"^1.9.4","@vitest/coverage-v8":"^3.0.9"},"_npmOperationalInternal":{"tmp":"tmp/playwright-testrail-reporter_0.10.0_1754526096518_0.08759846500652735","host":"s3://npm-registry-packages-npm-production"}},"0.11.0":{"name":"@bun913/playwright-testrail-reporter","author":{"name":"bun913"},"publishConfig":{"access":"public"},"homepage":"https://github.com/bun913/playwright-testrail-reporter","repository":{"type":"git","url":"git+https://github.com/bun913/playwright-testrail-reporter.git"},"bugs":{"url":"https://github.com/bun913/playwright-testrail-reporter/issues"},"license":"MIT","description":"A Playwright reporter that integrates with TestRail to report test results.","private":false,"version":"0.11.0","type":"module","main":"./dist/index.es.js","scripts":{"dev":"vite","build":"tsc && vite build","format":"biome format --write ./src","test":"vitest ./test --reporter=verbose --coverage","test:ci":"vitest run ./test --silent --coverage --reporter=verbose","test:e2e":"playwright test --config playwright.e2e.config.ts","playwright-cli":"playwright-cli"},"devDependencies":{"@biomejs/biome":"^1.9.4","@playwright/cli":"^0.1.1","@types/node":"^22.13.10","@vitest/coverage-v8":"^4.1.8","dotenv":"^16.4.5","typescript":"~5.7.2","vite":"^6.2.0","vitest":"^4.1.8"},"dependencies":{"@playwright/test":"^1.51.1","axios":"^1.8.3"},"gitHead":"689b01638c4272011b31f2067c9a12b19acdb50b","_id":"@bun913/playwright-testrail-reporter@0.11.0","_nodeVersion":"20.20.2","_npmVersion":"11.16.0","dist":{"integrity":"sha512-mJGsigppCGlTRYSm+f+tg1i5irDmGbiiiDMCY2QAcbLvRfD6RtmmPZY4kWAPzKvOKwOdSlvhp5etsxRcddXw/A==","shasum":"f9b9c4996794d358fe1495ec922b286d2d293283","tarball":"https://registry.npmjs.org/@bun913/playwright-testrail-reporter/-/playwright-testrail-reporter-0.11.0.tgz","fileCount":4,"unpackedSize":78539,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bun913%2fplaywright-testrail-reporter@0.11.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDmpYuV8bSCu9xJ897EE2vsVuYuZE8SENaKtZz3UpwzCAiAc9J6CgMunvrE7eJYs6K45oDHZmVwDLbJ6Ec4HNQ9MIQ=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:66e362b8-23aa-434f-a12c-35857682e1af"}},"directories":{},"maintainers":[{"name":"bun913","email":"nagasima.romance@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/playwright-testrail-reporter_0.11.0_1780668659143_0.4458065059232168"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-19T14:25:49.665Z","modified":"2026-06-05T14:10:59.575Z","0.9.0":"2025-03-19T14:25:49.995Z","0.9.7":"2025-03-19T14:34:43.523Z","0.9.9":"2025-03-19T14:39:47.383Z","0.10.0":"2025-08-07T00:21:36.743Z","0.11.0":"2026-06-05T14:10:59.290Z"},"author":{"name":"bun913"},"homepage":"https://github.com/bun913/playwright-testrail-reporter","description":"A Playwright reporter that integrates with TestRail to report test results.","maintainers":[{"name":"bun913","email":"nagasima.romance@gmail.com"}],"readme":"# Playwright TestRail Reporter\n\n## Overview\n\nThis project is a custom reporter for Playwright that integrates test results directly with TestRail. It enables automatic updating of test results in TestRail based on the outcomes of Playwright test runs.\n\n## Use Cases\n\nThe reporter supports two primary use cases:\n\n### Use Case 1: Report to an Existing TestRun\n\nWhen a specific TestRun already exists in TestRail, this reporter:\n- Extracts TestRail case IDs from Playwright test titles\n- Finds matching test cases within the specified TestRun\n- Updates those test cases with the results from Playwright\n\n**Required Parameters:**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `testRailHost` | string | URL of your TestRail instance |\n| `projectId` | number | TestRail project identifier |\n| `testRunId` | number | ID of the existing TestRun to update |\n\n### Use Case 2: Create a New TestRun and Report Results\n\nWhen no specific TestRun is provided, this reporter:\n- Creates a new TestRun in TestRail\n- Identifies test cases with IDs in their titles\n- Maps Playwright test results to corresponding TestRail cases\n- Updates the newly created TestRun with these results\n\n**Parameters:**\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `testRailHost` | string | Yes | URL of your TestRail instance |\n| `projectId` | number | Yes | TestRail project identifier |\n| `suiteId` | number | Maybe* | TestRail suite identifier - required if your project uses multiple test suites |\n| `milestoneId` | number | No | TestRail milestone to associate with the new TestRun |\n\n*Note: `suiteId` is required when creating a new test run in TestRail projects that use multiple test suites mode. For single suite projects, this parameter may be optional.\n\n## Implementation Details\n\nThe reporter works by parsing Playwright test titles to extract TestRail case IDs. When a test completes, it sends the result to TestRail, mapping Playwright test statuses to TestRail result statuses.\n\nFor tests with matching TestRail case IDs, results will be automatically reported to the specified TestRun (or to a newly created TestRun if none is specified). Tests that carry multiple case IDs will update all matching cases in the same run.\n\n### Test Title Format\n\nYour test titles should include the TestRail case ID in one of these formats:\n- \"C12345 Your test description\"\n- \"[C12345] Your test description\"\n\nMultiple case IDs are supported. Place them consecutively at the start of the title, separated by spaces:\n- \"C12345 C67890 Your test description\"\n- \"[C12345] [C67890] Your test description\"\n- \"C12345 [C67890] Your test description\"\n\nWhen multiple IDs are present, the same test result is reported to **each** case in TestRail.\n\n## Getting Started\n\n### Installation\n\n```bash\nnpm install --save-dev playwright-testrail-reporter\n```\n\n### Configuration\n\nConfigure the TestRail reporter in your Playwright configuration file:\n\n```typescript\n// playwright.config.ts\nimport { defineConfig } from '@playwright/test';\n\nexport default defineConfig({\n  reporter: [\n    ['list'],\n    [\n      'playwright-testrail-reporter',\n      {\n        // TestRail connection details\n        testRailHost: 'https://example.testrail.com',\n        username: 'your-username',\n        apiKey: process.env.TESTRAIL_API_KEY, // Use environment variable for sensitive data\n        \n        // Project information\n        projectId: 123,\n        \n        // Use Case 1: Updating an existing TestRun\n        testRunId: 456,\n        \n        // OR Use Case 2: Creating a new TestRun\n        // suiteId: 789, // Required if your project uses multiple test suites\n        // milestoneId: 101, // Optional: associate with a milestone\n      }\n    ]\n  ],\n});\n```\n\n### Authentication\n\nFor security reasons, it's recommended to store your TestRail API key in an environment variable:\n\n```\n# .env file\nTESTRAIL_API_KEY=your-api-key-here\n```\n\n## Troubleshooting\n\n### Common Issues\n\n1. **\"Field :suite_id is a required field\" Error**\n   \n   When creating a new test run, you might encounter an error if your TestRail project uses multiple test suites mode but you haven't provided a `suiteId`. Add the `suiteId` parameter to your configuration to resolve this issue.\n\n2. **Warning Messages**\n\n   The reporter will output warning messages to help diagnose configuration issues:\n   \n   - \"Creating a new test run without suiteId or milestone...\"\n   - \"Creating a new test run with suiteId but without milestone association.\"\n   - \"Creating a new test run with milestone, but no suiteId provided...\"\n   \n   These warnings indicate how the TestRail run will be created and whether required parameters might be missing.","readmeFilename":"README.md","repository":{"type":"git","url":"git+https://github.com/bun913/playwright-testrail-reporter.git"},"bugs":{"url":"https://github.com/bun913/playwright-testrail-reporter/issues"},"license":"MIT"}