README.md 1.24 KB
Newer Older
1 2 3
## Directory contents

The Dart files and golden master `.expect` files in this directory are used to
4 5
test the [`dart fix` framework](https://dart.dev/tools/dart-fix) refactorings
used by the Flutter framework.
6

7 8
See the flutter/packages/flutter/lib/fix_data directory for the current
package:flutter data-driven fixes.
9

10 11
To run these tests locally, execute this command in the
flutter/packages/flutter/test_fixes directory.
12 13 14 15
```sh
dart fix --compare-to-golden
```

16 17 18 19 20
For more documentation about Data Driven Fixes, see
https://dart.dev/go/data-driven-fixes#test-folder.

To learn more about how fixes are authored in package:flutter, see
https://github.com/flutter/flutter/wiki/Data-driven-Fixes
21

22 23
## When making structural changes to this directory

24 25 26 27
The tests in this directory are also invoked from external
repositories. Specifically, the CI system for the dart-lang/sdk repo
runs these tests in order to ensure that changes to the dart fix file
format do not break Flutter.
28

29
See [tools/bots/flutter/analyze_flutter_flutter.sh](https://github.com/dart-lang/sdk/blob/main/tools/bots/flutter/analyze_flutter_flutter.sh)
30 31 32 33
for where the tests are invoked.

When possible, please coordinate changes to this directory that might affect the
`analyze_flutter_flutter.sh` script.