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

Method flagSuiteStart

src/shared/test/test_model.ts:225–237  ·  view source on GitHub ↗
(suite: SuiteData, isRunningWholeSuite: boolean)

Source from the content-addressed store, hash-verified

223 }
224
225 public flagSuiteStart(suite: SuiteData, isRunningWholeSuite: boolean): void {
226 // Used for enqueue().
227 suite.isRunningWholeSuite = isRunningWholeSuite;
228
229 // Mark all test for this suite as "stale" which will make them faded, so that results from
230 // the "new" run are more obvious in the tree.
231 suite.getAllGroups().forEach((g) => g.isStale = true);
232 suite.getAllTests().forEach((t) => t.isStale = true);
233
234 if (isRunningWholeSuite && suite) {
235 this.markAllAsPotentiallyDeleted(suite, TestSource.Result);
236 }
237 }
238
239 // When running the whole suite (or updating from Outline), we flag all tests as being
240 // potentially deleted and then any tests that aren't run are removed from the tree. This

Calls 3

getAllGroupsMethod · 0.80
getAllTestsMethod · 0.80

Tested by

no test coverage detected