widget_driver_generator 0.0.3 copy "widget_driver_generator: ^0.0.3" to clipboard
widget_driver_generator: ^0.0.3 copied to clipboard

This package provides generators for WidgetDriver to automate the creation of your TestDrivers and WidgetDriverProviders

example/README.md

Implement a Driver inside your project #

@GenerateTestDriver()
class MyDriver extends WidgetDriver {
  ...

  @TestDriverDefaultValue(1)
  int get value => _someService.value;

  @TestDriverDefaultValue()
  void doSomething() {
    ...
  }

  @TestDriverDefaultValue('The string')
  String giveMeSomeString() {
    return _someService.getSomeString();
  }

  @TestDriverDefaultFutureValue(123)
  Future<int> giveMeSomeIntSoon() {
    return _someService.getSomeIntSoon();
  }
}

Generate the code #

In order to generate TestDrivers and WidgetDriverProviders just run this command:

flutter pub run build_runner build
2
likes
0
pub points
38%
popularity

Publisher

verified publisherbmwtech.dev

This package provides generators for WidgetDriver to automate the creation of your TestDrivers and WidgetDriverProviders

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, source_gen, widget_driver_annotation

More

Packages that depend on widget_driver_generator