Файли
openidea/src/features/run/testTree.ts
T
Mansur Akhmadiтаmansur-akhmadi 57094bc285 feat(run): Track Running Test in Test Runner Options (#6285)
Test Runner Options gets Track Running Test (also in Find Action as run.toggleTrackRunningTest), remembered with the other test tree options and on by default. While a run is in progress, each test that starts is selected, its collapsed suites opened and its output shown; when several start together the last in tree order wins. A test finishing doesn't move the selection, so a test picked by hand stays selected until the next one starts, and focus doesn't move.

Co-authored-by: mansur-akhmadi <[email protected]>
2026-11-27 08:18:37 +08:00

27 рядки
814 B
TypeScript

/** Context key: the test results tree has focus. */
export const TEST_TREE_FOCUS = "testTreeFocus";
/** Actions on the test results tree shown in Run. */
export const testTree: {
expandAll: (() => void) | null;
collapseAll: (() => void) | null;
/** Null while the run is in progress or has no results. */
exportResults: (() => void) | null;
showDurations: boolean | null;
toggleDurations: (() => void) | null;
selectFirstFailed: boolean | null;
toggleSelectFirstFailed: (() => void) | null;
trackRunning: boolean | null;
toggleTrackRunning: (() => void) | null;
} = {
expandAll: null,
collapseAll: null,
exportResults: null,
showDurations: null,
toggleDurations: null,
selectFirstFailed: null,
toggleSelectFirstFailed: null,
trackRunning: null,
toggleTrackRunning: null,
};