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

Method suiteDone

src/shared/test/test_model.ts:658–678  ·  view source on GitHub ↗
(dartCodeDebugSessionID: string | undefined, suitePath: string)

Source from the content-addressed store, hash-verified

656 }
657
658 public suiteDone(dartCodeDebugSessionID: string | undefined, suitePath: string): void {
659 const suite = this.suites.getForPath(suitePath);
660 if (!suite)
661 return;
662
663 // TODO: Some notification that things are complete?
664 // TODO: Maybe a progress bar during the run?
665
666 this.removeAllPotentiallyDeletedNodes(suite);
667
668 // Anything marked as running should be set back to Unknown
669 suite.getAllTests().filter((t) => t.status === TestStatus.Running).forEach((t) => {
670 t.status = TestStatus.Unknown;
671 this.updateNode({ node: t });
672 });
673
674 this.updateSuiteTestCountLabels(suite, false);
675
676 if (dartCodeDebugSessionID)
677 this.testEventListeners.forEach((l) => l.suiteDone(dartCodeDebugSessionID, suite.node));
678 }
679
680 public testOutput(dartCodeDebugSessionID: string, suitePath: string, testID: number, message: string) {
681 const suite = this.suites.getForPath(suitePath)!;

Callers

nothing calls this directly

Calls 6

updateNodeMethod · 0.95
getForPathMethod · 0.80
getAllTestsMethod · 0.80
suiteDoneMethod · 0.65

Tested by

no test coverage detected