Name: transformer_test
Owner: Dart
Description: Tools for testing Dart transformers
Created: 2016-01-19 20:25:55.0
Updated: 2017-05-15 20:19:39.0
Pushed: 2017-05-15 20:21:39.0
Homepage: https://pub.dartlang.org/packages/transformer_test
Size: 10
Language: Dart
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A library which provides some tools for testing Transformers
.
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:
Phases(
new CopyTransformer()]],
'a|lib/a.dart': 'hello!'
{
'a|lib/a.dart': 'hello!'
'a|lib/a.dart.copy': 'hello!'
;
Please file feature requests and bugs at the issue tracker.