🕒 Duration: 2 Weeks (or 8–10 hours total)
🎯 Level: Junior → Associate Flutter Developer
💰 Suggested Fee: NPR 9,000
📦 Includes: Hands-on labs, sample codebase, testing challenges, certificate
✅ What You Will Get
💼 Skills to boost job interviews or freelance confidence
🧠 Strong fundamentals of Flutter testing
🧪 Real-world test case writing experience
📂 Sample codebase for testing practice
🧾 Certificate of Completion
Course Outline
🔹 Chapter 1: Introduction to Testing in Flutter
- Why test? Testing pyramid: Unit, Widget, Integration
- Types of testing in Flutter
- Tools and setup (flutter_test, mocktail, test, integration_test)
- Writing your first test
🔹 Chapter 2: Unit Testing
- What is unit testing? When to use it?
- Testing Dart classes, services, utility functions
- Using
setUp
,tearDown
- Handling exceptions and edge cases
- Mocking dependencies with
mocktail
📌 Hands-on:
Test a basic Calculator or AuthValidator class.
🔹 Chapter 3: Widget Testing
- What is widget testing?
- Pumping widgets, finding widgets
- Verifying UI interaction and outputs
- Using
tester.tap
,tester.enterText
,tester.pumpAndSettle()
- Golden testing (optional)
📌 Hands-on:
Test a login form, counter app, or todo app UI.
🔹 Chapter 4: Mocking & Dependency Injection
- Using
mocktail
andMockito
(optional) - Mocking services like API calls or AuthService
- Best practices for testable architecture (clean separation)
- Writing tests for Provider-based apps
📌 Hands-on:
Test a simple API call using a mock service.
🔹 Chapter 5: Integration Testing
- Setting up the
integration_test
package - Writing tests across multiple screens
- Running tests on emulators and devices
flutter drive
vsflutter test integration_test
📌 Hands-on:
Integration test for onboarding → login → dashboard flow.