CtrlK
BlogDocsLog inGet started
Tessl Logo

pantheon-ai/test-driven-development

Master Test-Driven Development with deterministic red-green-refactor workflows, test-first feature delivery, bug reproduction through failing tests, behavior-focused assertions, and refactoring safety; use when implementing new functions, changing APIs, fixing regressions, or restructuring code under test.

Does it follow best practices?

Evaluation86%

1.05x

Agent success when using this tile

Validation for skill structure

Overview
Skills
Evals
Files

org-file-structure.mdreferences/

title:
Follow Consistent Test File Structure
impact:
MEDIUM
impactDescription:
reduces time finding tests
tags:
org, file-structure, conventions, naming

Follow Consistent Test File Structure

Establish and follow a consistent pattern for test file location and naming. Developers should instantly know where to find tests for any code.

Incorrect (inconsistent structure):

src/
  services/
    userService.ts
    tests/
      userService.spec.ts
  models/
    user.ts
tests/
  models/
    user.test.ts
spec/
  integration/
    user_tests.js
__tests__/
  userStuff.ts

Correct (consistent co-located tests):

src/
  services/
    userService.ts
    userService.test.ts        # Unit tests next to source
  models/
    user.ts
    user.test.ts
  components/
    UserProfile.tsx
    UserProfile.test.tsx
tests/
  integration/                  # Integration tests separate
    user-registration.test.ts
    checkout-flow.test.ts
  e2e/                         # E2E tests separate
    user-journey.test.ts

Alternative (mirror structure):

src/
  services/
    userService.ts
  models/
    user.ts
tests/
  unit/
    services/
      userService.test.ts      # Mirrors src/ structure
    models/
      user.test.ts
  integration/
    user-registration.test.ts

Naming conventions:

  • *.test.ts or *.spec.ts - pick one, use consistently
  • Match source file name: userService.tsuserService.test.ts
  • Use descriptive integration test names: checkout-flow.test.ts

Reference: Jest Configuration - testMatch

Install with Tessl CLI

npx tessl i pantheon-ai/test-driven-development

SKILL.md

tile.json