FLUTTER ECOSYSTEM

modular_test

Smart project structure with dependency injection and route management

Latest version
2.0.0
30-day downloads
10.5K
Likes
12
Pub points
120

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

ModularTest is a testing package for Flutter that supports smart project structure, dependency injection, and route management. It simplifies unit and widget testing by providing tools to manage dependencies and navigation in modular applications. Designed for developers using the Modular architecture, it ensures test isolation and consistency across platforms including Android, iOS, Web, macOS, Windows, and Linux. The package enhances test reliability by simulating real app behavior with proper dependency resolution and routing logic.

Use cases
  • Testing modular Flutter apps
  • Validating dependency injection
  • Simulating navigation flows
  • Isolating widget tests
  • Ensuring route correctness
  • Testing business logic in modules
Key features
  • Built-in dependency injection support
  • Route management for tests
  • Platform-agnostic testing
  • Integration with Modular architecture
  • Test environment configuration
  • Mockable services and dependencies
Suitable for
  • Developers using Modular architecture
  • Teams practicing test-driven development
  • Projects requiring modular scalability
  • Applications with complex navigation
  • Test automation engineers
  • Flutter projects targeting multiple platforms
Considerations
  • Requires Modular framework integration
  • Limited standalone use outside Modular
  • Needs understanding of dependency injection
  • May increase setup complexity
  • Best suited for large-scale apps
  • Depends on correct module configuration
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add modular_test

Categories

Source repository

Related projects