Writing unit, widget, and component test boilerplate is often neglected during rapid feature development. App Blink solves this by generating comprehensive test suites automatically when you save your implementation files.


⚡ Framework-Specific Test Generation

Whenever you modify a service, component, or controller and save:

1. Flutter (Dart & Mockito)

* **Target Path**: `test/{filePath}_test.dart` * **Test Types**: * Unit tests for models and business logic notifiers. * Widget tests using `WidgetTester` verifying UI renders and tap interactions. * **Mock Injection**: Automatically scaffolds mock classes using `@GenerateMocks([ServiceClass])` with Mockito.

2. Angular (Jasmine & Karma / Vitest)

* **Target Path**: `{filePath}.spec.ts` * **Test Types**: * Standalone component unit tests configuring `TestBed.configureTestingModule`. * Signal state assertions verifying computed values and effect triggers. * Mock providers for Angular services and HTTP clients.

🚀 How to Enable or Toggle

Toggle Auto-Generation on Save

* Run `App Blink: Toggle Test Generation on Save` from the Command Palette. * Or set in your VS Code `settings.json`: ```json { "appblink.tests.autoGenerateOnSave": true } ```

Generate Tests for Active File on Demand

If you prefer manual control: 1. Open the file you want to test in the editor. 2. Press `Cmd+Shift+P` and run **App Blink: Generate Tests for Active File**. 3. App Blink creates or extends the corresponding test file and opens it in a side-by-side editor pane.