improve docs for testing dart fix (#97493)

This commit is contained in:
Viren Khatri 2022-01-31 01:15:14 +05:30 committed by GitHub
parent 6bd0b95728
commit 53771aba0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,9 @@
# from other fixes. In a comment, include a link to the PR where the change # from other fixes. In a comment, include a link to the PR where the change
# requiring the fix was made. # requiring the fix was made.
# Every fix must be tested. See the flutter/packages/flutter/test_fixes/README.md
# file for instructions on testing these data driven fixes.
# For documentation about this file format, see # For documentation about this file format, see
# https://dart.dev/go/data-driven-fixes. # https://dart.dev/go/data-driven-fixes.

View File

@ -6,6 +6,14 @@ test the [`dart fix` framework](https://dart.dev/tools/dart-fix) refactorings us
See the flutter/packages/flutter/lib/fix_data.yaml file for the current package:flutter See the flutter/packages/flutter/lib/fix_data.yaml file for the current package:flutter
data driven fixes. data driven fixes.
To run these tests locally, execute this command in the flutter/packages/flutter/test_fixes
directory.
```sh
dart fix --compare-to-golden
```
For more documentation about this folder, see https://dart.dev/go/data-driven-fixes#test-folder.
## When making structural changes to this directory ## When making structural changes to this directory
Note that the tests in this directory are also invoked from external repositories. Note that the tests in this directory are also invoked from external repositories.