-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Copy link
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: tech-debtTechnical debt, code quality, testing, etc.Technical debt, code quality, testing, etc.team-toolOwned by Flutter Tool teamOwned by Flutter Tool team
Description
fail, which throws a TestFailure, is understood and handled by the test framework.
For example, when using "run test" in VSCode, the test will run (successfully) and report a failure (successfully):
With throw StateError, an unhandled exception is triggered, and the test does not run, and instead you get a stack dump:
This is a minor but easy to fix QoL improvement when developing package:flutter_tools.
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: tech-debtTechnical debt, code quality, testing, etc.Technical debt, code quality, testing, etc.team-toolOwned by Flutter Tool teamOwned by Flutter Tool team