← ClaudeAtlas

testraillisted

Sync tests with TestRail. Use when user mentions "testrail", "test management", "test cases", "test run", "sync test cases", "push results to testrail", or "import from testrail".
adriannoes/awesome-vibe-coding · ★ 38 · AI & Automation · score 83
Install: claude install-skill adriannoes/awesome-vibe-coding
# TestRail Integration Bidirectional sync between Playwright tests and TestRail test management. ## Prerequisites Environment variables must be set: - `TESTRAIL_URL` — e.g., `https://your-instance.testrail.io` - `TESTRAIL_USER` — your email - `TESTRAIL_API_KEY` — API key from TestRail If not set, inform the user how to configure them and stop. ## Capabilities ### 1. Import Test Cases → Generate Playwright Tests ``` /pw:testrail import --project <id> --suite <id> ``` Steps: 1. Call `testrail_get_cases` MCP tool to fetch test cases 2. For each test case: - Read title, preconditions, steps, expected results - Map to a Playwright test using appropriate template - Include TestRail case ID as test annotation: `test.info().annotations.push({ type: 'testrail', description: 'C12345' })` 3. Generate test files grouped by section 4. Report: X cases imported, Y tests generated ### 2. Push Test Results → TestRail ``` /pw:testrail push --run <id> ``` Steps: 1. Run Playwright tests with JSON reporter: ```bash npx playwright test --reporter=json > test-results.json ``` 2. Parse results: map each test to its TestRail case ID (from annotations) 3. Call `testrail_add_result` MCP tool for each test: - Pass → status_id: 1 - Fail → status_id: 5, include error message - Skip → status_id: 2 4. Report: X results pushed, Y passed, Z failed ### 3. Create Test Run ``` /pw:testrail run --project <id> --name "Sprint 42 Regression" ``` Steps: 1. Call `testrail_add_r