generator_test 0.6.0 copy "generator_test: ^0.6.0" to clipboard
generator_test: ^0.6.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
155
points
254
downloads

Publisher

verified publishermrgnhnt.com

Weekly Downloads

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, logging, meta, path, source_gen

More

Packages that depend on generator_test