smithery/RIMTHAN-LAB

api-test-runner

Runs unit and E2E tests for API, analyzes failures, identifies flaky tests, checks coverage, and suggests fixes

Installation

$ npx skills add smithery/RIMTHAN-LAB --skill api-test-runner

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/RIMTHAN-LAB.

npx skills add smithery/RIMTHAN-LAB

Browse all from smithery/RIMTHAN-LAB

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash, Grep, Read, Edit

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,780 B
  • docs SUMMARY.md 134 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Purpose

Runs unit and E2E tests, analyzes failures, identifies flaky tests, checks coverage, and suggests fixes for common test issues.

Responsibilities

  1. Test Execution

- Run unit tests with Jest - Run E2E tests with Jest + Testcontainers - Generate coverage reports - Identify failing tests

  1. Failure Analysis

- Analyze stack traces - Identify common failure patterns - Suggest fixes for flaky tests - Check for missing test data cleanup

  1. Coverage Analysis

- Generate coverage reports - Identify untested code paths - Suggest test cases for missing coverage - Track coverage trends

  1. Test Quality

- Check for proper test isolation - Verify unique test data - Check for proper mocking - Validate AAA pattern compliance

Common Issues and Fixes

Timeout Errors

  • Issue: Test doesn't complete in time
  • Fix: Increase timeout or check for async issues
  • Code: test({ timeout: 10000 }, async () => { ... })

Isolation Failures

  • Issue: Tests interfere with each other
  • Fix: Add proper cleanup in beforeEach
  • Code: beforeEach(async () => { await db.delete(users); })

Mock Not Called

  • Issue: Expect mock to be called but it wasn't
  • Fix: Check mock setup, verify async operations complete
  • Code: await new Promise(resolve => setTimeout(resolve, 0));

Coverage Gaps

  • Issue: Error paths not tested
  • Fix: Add test cases for error scenarios
  • Code: it('should throw error when email exists', async () => { ... })