16960a8638
* Handle inconsistencies in the type of a notice in reload reports. * Update expected error messages when the type parameters of a class change. * Fail reload tests if rejection error was expected but the actual error is null. * Cleanup unused imports in tests. * Delete change_instance_format7 test because it was split into DDC and VM specific versions. Change-Id: I3b4d6cb3126d7c1fad688c393677e053a005687f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/408883 Reviewed-by: Mark Zhou <markzipan@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>
Testing Framework for Hot Reload/Restart Tests for DDC
This package contains utilities to test multiple generations of files in order to validate hot reload and hot restart.
Test File Conventions
- Different generations of files have a generation number after the file name
e.g.
file_name.1.dartis the generation 1-version of the file. - If a generation file is intended to be rejected, it should contain
.rejectin the file name. Theconfig.jsonfile should contain a key"expectedErrors"with its value being a map of generation number string to the error string. - If a generation does a hot restart instead of a reload, it should contain
.restartin every file name in the same generation. - It is an error to specify both
.rejectand.restart.