flutter_fbi_test 0.1.5 copy "flutter_fbi_test: ^0.1.5" to clipboard
flutter_fbi_test: ^0.1.5 copied to clipboard

Testing helpers for the Flutter FBI library (featureTest helper).

flutter_fbi_test #

Testing helpers for the flutter_fbi package. Provides a small, focused featureTest helper to simplify unit-testing Feature classes from flutter_fbi.

Features

  • Lightweight test helper for Feature classes.
  • Small surface area — depends only on flutter_fbi and flutter_test.

Installation

Add to your dev_dependencies in pubspec.yaml:

dev_dependencies:
  flutter_fbi_test: ^0.1.4
  flutter_test:
    sdk: flutter

Basic usage

import 'package:flutter_fbi_test/flutter_fbi_test.dart';

featureTest<CounterEvent, CounterState, CounterSideEffect>(
  'increments once',
  build: () => CounterFeature(),
  act: (feature) => feature.add(IncrementEvent()),
  expect: () => [CounterState(count: 1)],
);

Guidance

  • Keep this package in dev_dependencies — it is intended for tests only.
  • Update the flutter_fbi constraint to match the published compatible version range when upgrading the core package.

License

This package is licensed under the Apache License 2.0. See the LICENSE file for details.

1
likes
0
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

Testing helpers for the Flutter FBI library (featureTest helper).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter_fbi, flutter_test, meta

More

Packages that depend on flutter_fbi_test