[flutter_tools] Add support for URI formats like ?line=x for "flutter test" (#119740)

* [flutter_tools] Add support for URI formats like ?line=x for "flutter test"

* Remove unnecessary function

* Handle parsing absolute paths on Windows

* Use Windows-style paths when running on Windows

* Fix paths in isFile

* Remove unnecessary clear
This commit is contained in:
Danny Tuppeny
2023-02-27 19:13:00 +00:00
committed by GitHub
parent 9a4e897965
commit 06952ba254
6 changed files with 91 additions and 33 deletions

View File

@@ -138,7 +138,7 @@ Future<void> run(List<String> args) async {
// TODO(dnfield): This should be injected.
exitCode = await const FlutterTestRunner().runTests(
const TestWrapper(),
tests.keys.toList(),
tests.keys.map(Uri.file).toList(),
debuggingOptions: DebuggingOptions.enabled(
BuildInfo(
BuildMode.debug,