tdd

ebiyy's avatarfrom ebiyy

Test-Driven Development workflow guide. TODO - This skill is a placeholder for future development. Will cover TDD patterns for Rust, TypeScript, and Tauri apps.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 31, 2025

When & Why to Use This Skill

This Claude skill provides a comprehensive framework for Test-Driven Development (TDD), specifically tailored for modern full-stack and desktop environments. It guides developers through the Red-Green-Refactor cycle and offers specialized testing patterns for Rust, TypeScript, and Tauri applications to ensure high code quality and robust software architecture.

Use Cases

  • Case 1: Implementing the Red-Green-Refactor workflow to minimize technical debt and improve code reliability in complex projects.
  • Case 2: Setting up unit testing patterns in Rust using #[cfg(test)] to validate backend logic within Tauri-based desktop apps.
  • Case 3: Configuring Vitest for TypeScript frontends to ensure component stability and prevent regressions during UI development.
  • Case 4: Establishing testing strategies for Tauri commands and determining the appropriate use of mocks versus integration tests for cross-platform features.
nametdd
descriptionTest-Driven Development workflow guide. TODO - This skill is a placeholder for future development. Will cover TDD patterns for Rust, TypeScript, and Tauri apps.

TDD (Test-Driven Development)

Status: Placeholder

This skill will be developed to cover:

Planned Topics

  • Red-Green-Refactor cycle
  • Rust unit testing patterns (#[cfg(test)])
  • TypeScript/Vitest patterns
  • Tauri command testing strategies
  • When to mock vs integration test
  • Test coverage goals

Current Testing in TrayLingo

Type Location Framework
Rust unit src-tauri/src/*.rs cargo test
Frontend src/**/*.test.ts Vitest

Commands

pnpm test          # Frontend
pnpm test:rust     # Backend
pnpm test:all      # Both