mockito
mockito copied to clipboard
Mockito-inspired mock library for Dart
Currently if one generates mocks with ``` @GenerateMocks(customMocks: MockSpec(unsupportedMembers: {#m}) ``` and then trying to set an expectation on `foo.m`, not only the test trying to do this fails (which...
When we updated to version 5.3.2 we began seeing the following error in our builds: ``` Building package executable... (3.1s) Built build_runner:build_runner. [INFO] Generating build script completed, took 204ms [INFO]...
I utilized Container and Text widgets in Flutter to create a basic example, and also incorporated a test case for my sample. However, during the test run(widget test case), I...
The documentation for `fallbackGenerators` says: > The fallback values will never be returned from a real member call; these are not stub return values. They are only used internally by...
A call on a function with the signature `Future returnsFutureVoid() => Future.value();` with no expected calls set up with `when` will not cause a MissingStubError. I have read through the...
Currently, in the [LICENSE file](https://github.com/dart-lang/mockito/blob/master/LICENSE), the copyright information is not correct. It literally reads (in line 190): ```diff Copyright [yyyy] [name of copyright owner] ``` Could you please add a...
Hi, I'm having the following simple class and want to generate a mock for it: ```dart class PlayerModelConverter { PlayerTableCompanion convertToPlayerCompanion(Player player); Player convertToPlayer(PlayerModel playerModel); } ``` "PlayerTableCompanion" and "PlayerModel"...
I like the Best Practices section of the Readme, as it gives guidance to less experienced devs, but it just throws the best practices without giving an actual explanation or...
Hi. I don't know if this issue is valid for this repository. I am having trouble generating mocks when using `auto_route`. Running `dart run build_runner build --verbose` outputs this error:...
I think this repo should provide examples for common libraries such as `dio` . I know it's not a responsibility of `mockito` but I believe this will encourage more people...