FLUTTER ECOSYSTEM

riverpod_test

A testing library which makes it easy to test providers. Built to be used with the riverpod package.

Latest version
0.1.9
30-day downloads
11.1K
Likes
27
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

riverpod_test is a testing library designed to simplify the testing of Riverpod providers in Flutter applications. It provides utilities to easily override, mock, and test provider values in isolation, ensuring reliable and maintainable tests. Built specifically for the Riverpod package, it integrates seamlessly with Flutter's testing ecosystem, enabling developers to verify state logic without relying on real dependencies. The library supports all major platforms, making it ideal for cross-platform testing workflows.

Use cases
  • Testing provider state changes
  • Mocking dependencies in tests
  • Validating business logic in providers
  • Isolating unit tests from real data sources
  • Verifying async operations in providers
Key features
  • Easy provider overrides
  • Built-in mocking support
  • Integration with Flutter's test framework
  • Support for async and sync providers
  • Clean, readable test syntax
Suitable for
  • Flutter developers using Riverpod
  • Teams prioritizing test reliability
  • Projects requiring extensive provider testing
  • Developers writing unit and integration tests
  • Cross-platform Flutter applications
Considerations
  • Requires Riverpod package
  • Limited to Riverpod-specific testing
  • May need additional setup for complex scenarios
  • Not suitable for widget-level testing alone
  • Depends on external test environment configuration
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add riverpod_test

Categories

Dependencies

Dependency list 4 items

Source repository

Related projects

No data available yet.