bloc_test 7.1.0
bloc_test: ^7.1.0 copied to clipboard

Dart native js
Flutter Android iOS web

A testing library which makes it easy to test blocs. Built to be used with the bloc state management package.

7.1.0 #

  • feat: add seed property to blocTest

7.0.6 #

  • chore: revert support dart >=2.7.0

7.0.5 #

  • fix: update to mockito ^4.1.2
  • chore: update to dart >=2.10.0

7.0.4 #

  • feat: blocTest provides warning to implement deep equality when shallow equality is true

7.0.3 #

  • restrict mockito to <4.1.2 to prevent breaking changes due to NNBD

7.0.2 #

  • fix: blocTest timeouts when verify fails (#1639)
  • fix: blocTest timeouts when expect fails (#1645)

7.0.1 #

  • chore: deprecate emitsExactly in favor of blocTest
  • fix: capture uncaught exceptions in Cubit

7.0.0 #

  • BREAKING: upgrade to bloc ^6.0.0
  • BREAKING: MockBloc only requires State type
  • BREAKING: whenListen only requires State type
  • BREAKING: blocTest only requires State type
  • BREAKING: blocTest skip defaults to 0
  • BREAKING: blocTest make build synchronous
  • fix: blocTest improve wait behavior when debouncing, etc...
  • feat: blocTest do not require async on act and verify
  • feat: remove external dependency on package:cubit_test
  • feat: MockBloc is compatible with cubit
  • feat: whenListen is compatible with cubit
  • feat: blocTest is compatible with cubit

7.0.0-dev.2 #

  • BREAKING: blocTest make build synchronous
  • fix: blocTest improve wait behavior when debouncing, etc...
  • feat: blocTest do not require async on act and verify

7.0.0-dev.1 #

  • BREAKING: upgrade to bloc ^6.0.0-dev.1
  • BREAKING: MockBloc only requires State type
  • BREAKING: whenListen only requires State type
  • BREAKING: blocTest only requires State type
  • BREAKING: blocTest skip defaults to 0
  • feat: remove external dependency on package:cubit_test
  • feat: MockBloc is compatible with cubit
  • feat: whenListen is compatible with cubit
  • feat: blocTest is compatible with cubit

6.0.1 #

  • fix: upgrade to bloc ^5.0.1
  • fix: upgrade to cubit_test ^0.1.1
  • docs: minor documentation updates

6.0.0 #

  • feat: upgrade to bloc ^5.0.0
  • refactor: internal implementation updates to use cubit_test

6.0.0-dev.4 #

  • Update to bloc ^5.0.0-dev.11.

6.0.0-dev.3 #

  • Update to bloc ^5.0.0-dev.10.

6.0.0-dev.2 #

  • Update to bloc ^5.0.0-dev.7.

6.0.0-dev.1 #

  • Update to bloc ^5.0.0-dev.6.
  • Internal implementation updates to use cubit_test

5.1.0 #

  • Add errors to blocTest to enable expecting unhandled exceptions within blocs.
  • Update whenListen to also handle stubbing the state property of the bloc.

5.0.0 #

  • Update to bloc: ^4.0.0

5.0.0-dev.4 #

  • Update to bloc: ^4.0.0-dev.4

5.0.0-dev.3 #

  • Update to bloc: ^4.0.0-dev.3

5.0.0-dev.2 #

  • Update to bloc: ^4.0.0-dev.2

5.0.0-dev.1 #

  • Update to bloc: ^4.0.0-dev.1

4.0.0 #

  • blocTest and emitsExactly skip initialState by default and expose optional skip (#910)
  • blocTest async build (#910)
  • blocTest expect is optional (#910)
  • blocTest verify includes the built bloc (#910)

3.1.0 #

  • Add verify to blocTest (#781)

3.0.1 #

  • Enable blocTest to add more than one asynchronous event at a time (#724)

3.0.0 #

  • Update to bloc: ^3.0.0
  • emitsExactly supports optional duration for async operators like debounceTime (#726)
  • blocTest supports optional wait for async operators like debounceTime (#726)

3.0.0-dev.1 #

  • Update to bloc: ^3.0.0-dev.1

2.2.2 #

  • Minor internal improvements (fixed analysis warning in emitsExactly)

2.2.1 #

  • Minor documentation improvements (syntax highlighting in README)

2.2.0 #

  • emitsExactly and blocTest support Iterable<Matcher (#695)

2.1.0 #

  • Add MockBloc to bloc_test in order to simplify bloc mocks (addresses #636)
  • Documentation and example updates

2.0.0 #

1.0.0 #

Updated to bloc: ^1.0.0 and Documentation Updates

0.2.1 #

whenListen automatically converts Stream to BroadcastStream

0.2.0 #

whenListen handles internal skip from BlocBuilder and BlocListener

0.1.0 #

Initial Version of the library.

  • Includes whenListen to enable mocking a Bloc state Stream.
120
likes
100
pub points
95%
popularity

Publisher

bloclibrary.dev

A testing library which makes it easy to test blocs. Built to be used with the bloc state management package.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (LICENSE)

Dependencies

bloc, meta, mockito, test

More

Packages that depend on bloc_test