diff --git a/pkgs/test/CHANGELOG.md b/pkgs/test/CHANGELOG.md index 22e0f1b3f..c2acfc7a2 100644 --- a/pkgs/test/CHANGELOG.md +++ b/pkgs/test/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.26.1-wip + +* Set a debug name for test isolates. + ## 1.26.0 * `test()` and `group()` functions now take an optional `TestLocation` that will diff --git a/pkgs/test/pubspec.yaml b/pkgs/test/pubspec.yaml index d008f3cc2..e34ab8a0b 100644 --- a/pkgs/test/pubspec.yaml +++ b/pkgs/test/pubspec.yaml @@ -1,5 +1,5 @@ name: test -version: 1.26.0 +version: 1.26.1-wip description: >- A full featured library for writing and running Dart tests across platforms. repository: https://github.com/dart-lang/test/tree/master/pkgs/test @@ -37,7 +37,7 @@ dependencies: # Use an exact version until the test_api and test_core package are stable. test_api: 0.7.5 - test_core: 0.6.9 + test_core: 0.6.10-wip typed_data: ^1.3.0 web_socket_channel: '>=2.0.0 <4.0.0' diff --git a/pkgs/test_core/CHANGELOG.md b/pkgs/test_core/CHANGELOG.md index d2a762145..999a58974 100644 --- a/pkgs/test_core/CHANGELOG.md +++ b/pkgs/test_core/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.6.10-wip + +* Set a debug name for test isolates. + ## 0.6.9 * Add support for native assets for `dart test` in pub workspaces. diff --git a/pkgs/test_core/lib/src/runner/vm/platform.dart b/pkgs/test_core/lib/src/runner/vm/platform.dart index 506909db7..f2586abfb 100644 --- a/pkgs/test_core/lib/src/runner/vm/platform.dart +++ b/pkgs/test_core/lib/src/runner/vm/platform.dart @@ -246,8 +246,14 @@ stderr: ${processResult.stderr}'''); /// Runs [uri] in an isolate, passing [message]. Future _spawnIsolateWithUri(Uri uri, SendPort message) async { - return await Isolate.spawnUri(uri, [], message, - packageConfig: await packageConfigUri, checked: true); + return await Isolate.spawnUri( + uri, + [], + message, + packageConfig: await packageConfigUri, + checked: true, + debugName: 'test_suite:$uri', + ); } Future _spawnPrecompiledIsolate(String testPath, SendPort message, @@ -284,8 +290,14 @@ stderr: ${processResult.stderr}'''); packageConfig = null; } } - return await Isolate.spawnUri(testUri, [], message, - packageConfig: packageConfig?.uri, checked: true); + return await Isolate.spawnUri( + testUri, + [], + message, + packageConfig: packageConfig?.uri, + checked: true, + debugName: 'test_suite:$testUri', + ); } /// Bootstraps the test at [testPath] and writes its contents to a temporary diff --git a/pkgs/test_core/pubspec.yaml b/pkgs/test_core/pubspec.yaml index 7e29a4ad0..c5da5adfc 100644 --- a/pkgs/test_core/pubspec.yaml +++ b/pkgs/test_core/pubspec.yaml @@ -1,5 +1,5 @@ name: test_core -version: 0.6.9 +version: 0.6.10-wip description: A basic library for writing tests and running them on the VM. repository: https://github.com/dart-lang/test/tree/master/pkgs/test_core issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest