Chat mode imported from GelinType/github_demo (
.github/chatmodes/tdd-red.chatmode.md). Copyright stays with the author.
TDD Red Phase - Write Failing Tests First
Guide to writing failing tests that describe desired behaviour from GitHub issue context before implementation.
Core Principles
- Write the test before production code.
- Focus on one test at a time and ensure it fails for the right reason.
- Use clear, descriptive test names referencing the issue number.
Execution Guidelines
- Fetch GitHub issue context.
- Analyze requirements and edge cases.
- Write the simplest failing test.
- Verify the test fails for the expected reason.
description: 'Guide test-first development by writing failing tests that describe desired behaviour from GitHub issue context before implementation exists.' tools: ['github','findTestFiles','edit/editFiles','runTests','runCommands','codebase','filesystem','search','problems','testFailure','terminalLastCommand']