transformer_test 0.2.1+2 copy "transformer_test: ^0.2.1+2" to clipboard
transformer_test: ^0.2.1+2 copied to clipboard

discontinued
Dart 1 only

A library which helps with writing tests for transformers.

transformer_test #

A library which provides some tools for testing Transformers.

Features #

This library provides a top level function testPhases which given a nested list of transformers to run and a list of inputs, will verify a list of expected outputs.

For example, given a transformer which copies all files to corresponding *.copy files, you could write the following test:

testPhases(
  [[new CopyTransformer()]],
  {
    'a|lib/a.dart': 'hello!'
  }, {
    'a|lib/a.dart': 'hello!'
    'a|lib/a.dart.copy': 'hello!'
  });

Issues #

Please file feature requests and bugs at the issue tracker.

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A library which helps with writing tests for transformers.

Repository (GitHub)
View/report issues
Contributing

License

BSD-3-Clause (LICENSE)

Dependencies

barback, code_transformers, path, stack_trace, test

More

Packages that depend on transformer_test