generator_test 0.4.1 copy "generator_test: ^0.4.1" to clipboard
generator_test: ^0.4.1 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();
}
copied to clipboard
4
likes
160
points
86
downloads

Publisher

verified publishermrgnhnt.com

Weekly Downloads

2024.09.19 - 2025.04.03

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

build, build_test, logging, meta, path, source_gen

More

Packages that depend on generator_test