flutter / flutter/devtools

Support starting DTD and setting workspace roots from integration tests

未关闭
#9,196 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
integration tests P2 testing
主要语言
Dart
星标
1.7k
派生
404
平均合并
6 天 17 小时
30 天内合并 PR
18

描述

This is a follow up to https://github.com/flutter/devtools/issues/9176. To emulate the runtime environment where DevTools server was started with a DTD uri passed to it on start, we need to be able to start DTD from integration tests before we start the DevTools server.

This will unblock use cases like testing static DevTools extensions that should be present without a connected app, based on the roots set by the DTD instance that was started by the user's IDE.

To do this, we can re-use this code: https://github.com/dart-lang/sdk/blob/main/pkg/dds/lib/src/devtools/dtd.dart. We may want to expose this so we can import it directly from `devtools_app`.

EDIT: it may be better to run `dart tooling-daemon` directly.

贡献指南

打开贡献指南

调研方向

首先检查集成测试设置以及 Dart SDK 中 pkg/dds/lib/src/devtools/dtd.dart 的现有 DTD 实现。了解 devtools_app 如何在 DevTools 服务器启动前提供或调用此支持,并将该方法与直接运行 dart tooling-daemon 进行比较。当集成测试能够在 DevTools 之前启动 DTD,并为静态扩展场景设置工作区根目录时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart
领域
devtools
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。