generator_test 0.3.0 copy "generator_test: ^0.3.0" to clipboard
generator_test: ^0.3.0 copied to clipboard

A library to help test generators and build runner packages using dart files instead of Strings

example/main.dart

import 'package:generator_test/generator_test.dart';

import './fake_generator.dart';

void main() async {
  const generator = SuccessGenerator(
    ['input.dart'],
    ['input.g.dart'],
    fakeGenerator,
    partOfFile: 'input.dart',
  );

  await generator.test();
}
4
likes
160
pub points
27%
popularity

Publisher

verified publishermrgnhnt.com

A library to help test generators and build runner packages using dart files instead of Strings

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

build, build_test, dart_style, logging, meta, path, source_gen

More

Packages that depend on generator_test