Files
sdk/pkg/reload_test
Nicholas Shahan de18b40933 [ddc] Split hot restart into two phases
Exposes two new methods `hotRestartBegin()` and `hotRestartEnd()` in
the `DartDevEmbedder`. This provides a more customizable loading
of sources across the variety of environments we are supporting.

Change-Id: Id7a35695234f0625fe4de1d67c9d5a8055bad461
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/500240
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2026-05-08 11:43:35 -07:00
..

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.dart is the generation 1-version of the file.
  • If a generation file is intended to be rejected, it should contain .reject in the file name. The config.json file 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 .restart in every file name in the same generation.
  • It is an error to specify both .reject and .restart.