dart-testing
Installation
SKILL.md
Testing Dart Applications
Contents
- Core Testing Principles
- Test Implementation Guidelines
- Mocking and Isolation
- Running Tests
- Workflows
- Examples
- Related Skills
Core Testing Principles
Apply the appropriate testing strategy based on the target environment and scope:
- Unit Tests: Verify the smallest piece of testable software (functions, methods, classes). Maximize coverage here.
- Component/Widget Tests: Verify that a component (multiple classes or Flutter Widgets) behaves as expected. Use mock objects to mimic user actions and events.
- Integration/End-to-End Tests: Verify the behavior of an entire app or large subsystem on a simulated/real device or browser.