Support starting DTD and setting workspace roots from integration tests
- Vorherrschende Sprache
- Dart
- Sterne
- 1.7k
- Forks
- 404
- Ø Merge
- 6 T. 17 Std.
- Gemergte PRs (30 T.)
- 18
Beschreibung
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.
Beitragsleitfaden
Rechercherichtung
Start by reviewing the integration-test setup and the existing DTD implementation in the Dart SDK at pkg/dds/lib/src/devtools/dtd.dart. Check how devtools_app can expose or invoke this support before the DevTools server starts, and compare that approach with running dart tooling-daemon directly. Done means integration tests can start DTD before DevTools and set workspace roots for static extension scenarios.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- dart
- Bereich
- devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100