mockable_gen 0.2.2 copy "mockable_gen: ^0.2.2" to clipboard
mockable_gen: ^0.2.2 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.

0
likes
160
points
24
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#code-generation #mock #testing #skeletonizer

License

MIT (license)

Dependencies

analyzer, build, dart_style, meta, mockable, source_gen

More

Packages that depend on mockable_gen