Unit Test

Generate, update, or repair unit tests for a Flutter feature path or single Dart class. Knows what to test (domain models, services, notifiers, providers, exceptions) and what to skip (widgets, generated code, Firebase repos). Stresses code with adversarial edge cases instead of merely satisfying it — expected values come from the contract, never from running the code; red tests that expose real bugs are reported, never weakened. Uses mocktail, GWT pattern, Riverpod 3.x ProviderContainer, and an incremental run-fix cycle targeting ≥80% coverage. Use proactively when the user asks to write, generate, add, fix, or improve unit tests for any feature, class, service, notifier, or provider — even if they just say "write tests for X" or "add test coverage to Y".

iamantoniodinuzzo e8e7c85 11 files · 52.8 KB Updated

File contents

iamantoniodinuzzo/claude-flutter/tree/main/skills/unit-test commit e8e7c854a0

Frequently asked questions

npx skillmds@latest add iamantoniodinuzzo/unit-test