transformer_test 0.1.0 copy "transformer_test: ^0.1.0" to clipboard
transformer_test: ^0.1.0 copied to clipboard

discontinued
outdatedDart 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
0
pub points
0%
popularity

Publisher

unverified uploader

A library which helps with writing tests for transformers.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

barback, code_transformers, path, test

More

Packages that depend on transformer_test