mockable_gen 0.1.0
mockable_gen: ^0.1.0 copied to clipboard
Build_runner generator that emits .mock.g.dart files with realistic XxxMock.mock() / XxxMock.mockList(n) factories for classes annotated with @Mockable() from package:mockable.
example/README.md
mockable_gen example #
A minimal end-to-end consumer of mockable + mockable_gen.
dart pub get
dart run build_runner build
dart run bin/main.dart
The first command resolves dependencies; the second generates
lib/user.mock.g.dart; the third prints sample mock instances using the
generated factories.