MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / suiteStarted

Method suiteStarted

src/shared/test/test_model.ts:450–457  ·  view source on GitHub ↗

* Handles when a suite is discovered during a test run. * * This is similar to suiteDiscovered, however that method fires also when a suite is discovered * statically, whereas this is specifically when it's discovered as part of a test run (eg. from * a pkg:test JSON notification).

(dartCodeDebugSessionID: string, suitePath: string)

Source from the content-addressed store, hash-verified

448 * a pkg:test JSON notification).
449 */
450 public suiteStarted(dartCodeDebugSessionID: string, suitePath: string): SuiteData {
451 const [suite] = this.getOrCreateSuite(suitePath);
452 this.updateNode({ node: suite.node });
453
454 this.testEventListeners.forEach((l) => l.suiteStarted(dartCodeDebugSessionID, suite.node));
455
456 return suite;
457 }
458
459 public groupDiscovered(dartCodeDebugSessionID: string, suitePath: string, source: TestSource, groupID: number, groupName: string | undefined, parentID: number | undefined, groupPath: string | undefined, range: Range | undefined, _hasStarted = false): GroupNode {
460 groupPath ??= suitePath;

Callers

nothing calls this directly

Calls 3

getOrCreateSuiteMethod · 0.95
updateNodeMethod · 0.95
suiteStartedMethod · 0.65

Tested by

no test coverage detected