TEST Workflow

Intelligent test generation and coverage analysis

Intelligent test generation
TDD support
Test coverage analysis
E2E test creation

Commands in this Workflow

Detailed documentation for each command including when to use it, what it's best for, and real-world examples.

/siftcoder:test

Auto

Generate intelligent tests

What It Does

Automatically generates comprehensive unit tests, integration tests, and E2E tests based on code analysis. Understands function behavior, edge cases, and error conditions to create thorough test coverage.

Usage

/siftcoder:test <target>

Parameters

targetFile, function, or component to test

When to Use

Increasing test coverage, testing legacy code, TDD workflow support

Best For

Complex functions, critical business logic, APIs, user interfaces

Real-World Example

/siftcoder:test src/utils/validation.ts
# Creates: Unit tests for all functions, edge cases, error conditions

/siftcoder:tdd

Auto

Test-driven development workflow

What It Does

Implements TDD by writing tests first, then implementing code to make tests pass. Follows red-green-refactor cycle with comprehensive test coverage and clean implementation.

Usage

/siftcoder:tdd <requirement>

Parameters

requirementFeature or function to implement with TDD

When to Use

New feature development, practicing TDD, ensuring high test coverage

Best For

Critical business logic, complex algorithms, quality-focused development

Real-World Example

/siftcoder:tdd 'User authentication with JWT'
# 1. Writes failing tests
# 2. Implements auth logic
# 3. All tests pass