Open ishchhabra opened 2 months ago
@ishchhabra thanks for opening the issue! This issue has been labelled with a P2, which means it is an important issue but not at the top of the work list. Is it blocking you? Are you interested in contributing and solving it? If so, if you submit a PR the team might be able to help you through it and landing it!
Description
When a long-running test suite is terminated using
CMD + C
,.test_optimizer.dart
is not cleaned up, and the file persists.Steps To Reproduce
very_good create flutter_app <project_name>
app_test.dart
and add the following code to simulate a long-running test:CMD + C
..test_optimizer.dart
is not deleted automatically.Expected Behavior
.test_optimizer.dart
should be cleaned up automatically and should not persist.Additional Context
It seems like the CLI is not catching the SIGINT signal. Implementing signal handling could help perform cleanup before termination of the application: