CtrlK
BlogDocsLog inGet started
Tessl Logo

test

Advanced test implementation command with unit/E2E support, auto-execution, and smart fixing capabilities

Install with Tessl CLI

npx tessl i github:sc30gsw/claude-code-customes --skill test
What are skills?

78

Does it follow best practices?

Validation for skill structure

SKILL.md
Review
Evals

Test Command

Implement comprehensive tests with optional test execution and intelligent failure fixing.

Usage

/test <target> [options]

Target Specification

Target TypeExamplesDescription
Component NameLoginForm, UserProfileReact/Vue/Angular components
File Pathutils/validation, hooks/useAuthModule and utility files
Function NamecalculateTotal, formatDateSpecific functions
Feature Nameauthentication, paymentEntire feature areas

Options

OptionDescriptionDefault
-uUnit test mode
-eE2E test mode + accessibility injection-
-rAuto-run tests with smart fixing-
-vVerbose output mode-
-cCoverage-focused mode (target 90%+)-
-pPerformance test mode-
-wWatch mode-
-fFast mode (parallel + caching)-
--files=PATTERNSpecify files by glob-
--exclude=PATTERNExclude files by glob-
--include-depsInclude dependency files-
--dry-runTest design only-

Tool Priorities

ALWAYS prioritize mcp__serena__ tools over default Claude Code tools:

File Operations (Serena MCP First)

  • Reading files: Use mcp__serena__find_fileRead (fallback)
  • Searching patterns: Use mcp__serena__search_for_patternGrep (fallback)
  • Finding symbols: Use mcp__serena__find_symbolGlob (fallback)

Code Analysis (Serena MCP)

  • Symbol overview: Use mcp__serena__get_symbols_overview
  • Symbol references: Use mcp__serena__find_referencing_symbols
  • Code replacement: Use mcp__serena__replace_symbol_bodyEdit (fallback)

Examples

# Basic Usage
/test LoginComponent -e -r          # E2E tests, run & fix
/test utils/auth -u -r -c           # High-coverage unit tests
/test PaymentForm -e -v             # E2E with verbose output

# File Pattern Specification
/test components --files="Button*" -u -r
/test src --files="**/*.hook.ts" -u -c
/test api --files="**/*Controller.ts" --include-deps -u -r

# Performance-Focused
/test heavyComponent -u -p -f --parallel=8
/test api/bulk -u -p --timeout=60

Test Implementation Flow

Unit Test Mode (-u)

  1. Target code analysis with Serena MCP
  2. Test framework detection (Jest, Vitest, Mocha)
  3. Test case creation: happy path, error cases, edge cases

E2E Test Mode (-e)

  1. Component analysis for interactive elements
  2. E2E framework detection (Cypress, Playwright)
  3. Accessibility attribute injection (data-testid, aria-label)
  4. E2E test case creation: page loading, user interactions, forms

Smart Fixing (-r option)

  1. Parse error output
  2. Classify errors: syntax, assertion, async, mock, E2E-specific
  3. Apply appropriate fixing strategy
  4. Re-run and iterate (max 10 attempts)

Output Report

📁 Created/Updated Files:
- src/components/LoginForm.test.tsx
- cypress/e2e/user-authentication.cy.ts

🧪 Implemented Test Cases:
[Unit Tests]
✓ LoginForm happy path tests (3 cases)
✓ LoginForm error handling tests (2 cases)

🚀 Test Execution Results:
[1st Run] ❌ 2 failures
[Auto-Fix Applied] ✅
[2nd Run] ✅ All passed (9 tests)
Coverage: 95.2%
Repository
sc30gsw/claude-code-customes
Last updated
Created

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.