Loading...
Write comprehensive failing tests following TDD red phase principles.
[Extended thinking: Generates failing tests that properly define expected behavior using test-automator agent.]
Generate failing tests using Task tool with subagent_type="unit-testing::test-automator".
"Generate comprehensive FAILING tests for: $ARGUMENTS
Test Structure
Behavior Coverage
Failure Verification
Test Categories
JavaScript/TypeScript (Jest/Vitest)
vi.fn() or jest.fn()@testing-library for React componentsfast-checkPython (pytest)
Go
t.Parallel() for parallel executiontestify/assert for cleaner assertionsRuby (RSpec)
let for lazy loading, let! for eagerAfter generation:
// auth.service.test.ts
describe('AuthService', () => {
let authService: AuthService;
let mockUserRepo: jest.Mocked<UserRepository>;
beforeEach(() => {
mockUserRepo = { findByEmail: jest.fn() } as any;
authService = new AuthService(mockUserRepo);
});
it('should_return_token_when_valid_credentials', async () => {
const user = { id: '1', email: 'test@example.com', passwordHash: 'hashed' };
mockUserRepo.findByEmail.mockResolvedValue(user);
const result = await authService.authenticate('test@example.com', 'pass');
expect(result.success).toBe(true);
expect(result.token).toBeDefined();
});
it('should_fail_when_user_not_found', async () => {
mockUserRepo.findByEmail.mockResolvedValue(null);
const result = await authService.authenticate('none@example.com', 'pass');
expect(result.success).toBe(false);
expect(result.error).toBe('INVALID_CREDENTIALS');
});
});
Test requirements: $ARGUMENTS
The tdd-workflows-tdd-red AI agent handles tdd-workflows-tdd-red-related tasks automatically. Generate failing tests for the TDD red phase to define expected behavior and edge cases. You can use this expert persona to automate complex workflows without hiring expensive human freelancers.
To deploy the tdd-workflows-tdd-red AI agent, download the package, extract the files to your project's .cursor/skills directory, and type @tdd-workflows-tdd-red in your editor chat to start automating your tasks immediately.
Our tdd-workflows-tdd-red AI persona is completely free to download and integrate into compatible Agentic IDEs like Cursor, Windsurf, Github Copilot, and Anthropic MCP servers, giving you enterprise-grade automation at zero cost.
Generate failing tests for the TDD red phase to define expected behavior and edge cases.
Download Skill Package.cursor/skills@tdd-workflows-tdd-red in editor chat.Copy the instructions from the panel on the left and paste them into your custom instructions setting.
"Adding this tdd-workflows-tdd-red persona to my Cursor workspace completely changed the quality of code my AI generates. Saves me hours every week."
Developers who downloaded tdd-workflows-tdd-red also use these elite AI personas.
Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences. Use when: 3D website, three.js, WebGL, react three fiber, 3D experience.
Structured guide for setting up A/B tests with mandatory gates for hypothesis, metrics, and execution readiness.
You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.
Explore our most popular utilities designed for the modern Indian creator.
Free AI Hinglish to English translator, corrector and converter. Paste any Hindi-English mix and get clean English in formal, natural or concise style.
Generate professional PDFs with payment links.
Find the perfect meeting time between different time zones visually. Works for any combination — PST, EST, GMT, CET, IST, JST.