(suite: SuiteData, isRunningWholeSuite: boolean)
| 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 |
no test coverage detected