@theia/test 1.45.0 → 1.46.0-next.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/constants.d.ts +45 -45
- package/lib/browser/constants.js +17 -17
- package/lib/browser/test-service.d.ts +154 -154
- package/lib/browser/test-service.js +247 -247
- package/lib/browser/view/test-context-key-service.d.ts +7 -7
- package/lib/browser/view/test-context-key-service.js +51 -51
- package/lib/browser/view/test-execution-state-manager.d.ts +13 -13
- package/lib/browser/view/test-execution-state-manager.js +173 -173
- package/lib/browser/view/test-output-ui-model.d.ts +47 -47
- package/lib/browser/view/test-output-ui-model.js +151 -151
- package/lib/browser/view/test-output-view-contribution.d.ts +5 -5
- package/lib/browser/view/test-output-view-contribution.js +47 -47
- package/lib/browser/view/test-output-widget.d.ts +24 -24
- package/lib/browser/view/test-output-widget.js +158 -158
- package/lib/browser/view/test-result-view-contribution.d.ts +5 -5
- package/lib/browser/view/test-result-view-contribution.js +47 -47
- package/lib/browser/view/test-result-widget.d.ts +20 -20
- package/lib/browser/view/test-result-widget.js +108 -108
- package/lib/browser/view/test-run-view-contribution.d.ts +17 -17
- package/lib/browser/view/test-run-view-contribution.js +100 -100
- package/lib/browser/view/test-run-widget.d.ts +58 -58
- package/lib/browser/view/test-run-widget.js +310 -310
- package/lib/browser/view/test-tree-widget.d.ts +67 -67
- package/lib/browser/view/test-tree-widget.js +386 -386
- package/lib/browser/view/test-view-contribution.d.ts +45 -45
- package/lib/browser/view/test-view-contribution.js +288 -288
- package/lib/browser/view/test-view-frontend-module.d.ts +6 -6
- package/lib/browser/view/test-view-frontend-module.js +121 -121
- package/lib/common/collections.d.ts +46 -46
- package/lib/common/collections.js +210 -210
- package/lib/common/tree-delta.d.ts +51 -51
- package/lib/common/tree-delta.js +240 -240
- package/lib/common/tree-delta.spec.d.ts +1 -1
- package/lib/common/tree-delta.spec.js +139 -139
- package/package.json +8 -8
- package/src/browser/constants.ts +71 -71
- package/src/browser/style/index.css +41 -41
- package/src/browser/test-service.ts +355 -355
- package/src/browser/view/test-context-key-service.ts +36 -36
- package/src/browser/view/test-execution-state-manager.ts +147 -147
- package/src/browser/view/test-output-ui-model.ts +156 -156
- package/src/browser/view/test-output-view-contribution.ts +34 -34
- package/src/browser/view/test-output-widget.ts +148 -148
- package/src/browser/view/test-result-view-contribution.ts +34 -34
- package/src/browser/view/test-result-widget.ts +92 -92
- package/src/browser/view/test-run-view-contribution.ts +89 -89
- package/src/browser/view/test-run-widget.tsx +271 -271
- package/src/browser/view/test-tree-widget.tsx +360 -360
- package/src/browser/view/test-view-contribution.ts +300 -300
- package/src/browser/view/test-view-frontend-module.ts +134 -134
- package/src/common/collections.ts +223 -223
- package/src/common/tree-delta.spec.ts +166 -166
- package/src/common/tree-delta.ts +259 -259
|
@@ -1,174 +1,174 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 STMicroelectronics and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.TestExecutionStateManager = void 0;
|
|
28
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
-
const test_service_1 = require("../test-service");
|
|
30
|
-
/**
|
|
31
|
-
* This class manages the state of "internal" nodes in the test tree
|
|
32
|
-
*/
|
|
33
|
-
let TestExecutionStateManager = class TestExecutionStateManager {
|
|
34
|
-
constructor() {
|
|
35
|
-
this.executionStates = new Map();
|
|
36
|
-
}
|
|
37
|
-
init() {
|
|
38
|
-
this.testService.getControllers().forEach(controller => this.addController(controller));
|
|
39
|
-
this.testService.onControllersChanged(controllerDelta => {
|
|
40
|
-
var _a;
|
|
41
|
-
(_a = controllerDelta.added) === null || _a === void 0 ? void 0 : _a.forEach(controller => this.addController(controller));
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
addController(controller) {
|
|
45
|
-
controller.testRuns.forEach(run => this.addRun(run));
|
|
46
|
-
controller.onRunsChanged(runDelta => {
|
|
47
|
-
var _a, _b;
|
|
48
|
-
(_a = runDelta.added) === null || _a === void 0 ? void 0 : _a.forEach(run => this.addRun(run));
|
|
49
|
-
(_b = runDelta.removed) === null || _b === void 0 ? void 0 : _b.forEach(run => {
|
|
50
|
-
this.executionStates.delete(run);
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
addRun(run) {
|
|
55
|
-
this.executionStates.set(run, new TestExecutionStateMap);
|
|
56
|
-
run.onDidChangeTestState(updates => {
|
|
57
|
-
updates.forEach(update => {
|
|
58
|
-
var _a, _b;
|
|
59
|
-
this.updateState(run, update.test, (_a = update.oldState) === null || _a === void 0 ? void 0 : _a.state, (_b = update.newState) === null || _b === void 0 ? void 0 : _b.state);
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
updateState(run, item, oldState, newState) {
|
|
64
|
-
const map = this.executionStates.get(run);
|
|
65
|
-
map.reportState(item, oldState, newState);
|
|
66
|
-
}
|
|
67
|
-
getComputedState(run, item) {
|
|
68
|
-
var _a;
|
|
69
|
-
return (_a = this.executionStates.get(run)) === null || _a === void 0 ? void 0 : _a.getComputedState(item);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, inversify_1.inject)(test_service_1.TestService),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], TestExecutionStateManager.prototype, "testService", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, inversify_1.postConstruct)(),
|
|
78
|
-
__metadata("design:type", Function),
|
|
79
|
-
__metadata("design:paramtypes", []),
|
|
80
|
-
__metadata("design:returntype", void 0)
|
|
81
|
-
], TestExecutionStateManager.prototype, "init", null);
|
|
82
|
-
TestExecutionStateManager = __decorate([
|
|
83
|
-
(0, inversify_1.injectable)()
|
|
84
|
-
], TestExecutionStateManager);
|
|
85
|
-
exports.TestExecutionStateManager = TestExecutionStateManager;
|
|
86
|
-
class TestExecutionStateMap {
|
|
87
|
-
constructor() {
|
|
88
|
-
this.stateCounts = new Map();
|
|
89
|
-
}
|
|
90
|
-
reportState(item, oldState, newState) {
|
|
91
|
-
if (oldState !== newState) {
|
|
92
|
-
if (item.parent) {
|
|
93
|
-
this.reportChildStateChanged(item.parent, oldState, newState);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
reportChildStateChanged(parent, oldState, newState) {
|
|
98
|
-
if (oldState !== newState) {
|
|
99
|
-
const currentParentState = this.getComputedState(parent);
|
|
100
|
-
let counts = this.stateCounts.get(parent);
|
|
101
|
-
if (!counts) {
|
|
102
|
-
counts = [];
|
|
103
|
-
counts[test_service_1.TestExecutionState.Queued] = 0;
|
|
104
|
-
counts[test_service_1.TestExecutionState.Running] = 0;
|
|
105
|
-
counts[test_service_1.TestExecutionState.Passed] = 0;
|
|
106
|
-
counts[test_service_1.TestExecutionState.Failed] = 0;
|
|
107
|
-
counts[test_service_1.TestExecutionState.Skipped] = 0;
|
|
108
|
-
counts[test_service_1.TestExecutionState.Errored] = 0;
|
|
109
|
-
this.stateCounts.set(parent, counts);
|
|
110
|
-
}
|
|
111
|
-
if (oldState) {
|
|
112
|
-
counts[oldState]--;
|
|
113
|
-
}
|
|
114
|
-
if (newState) {
|
|
115
|
-
counts[newState]++;
|
|
116
|
-
}
|
|
117
|
-
const newParentState = this.getComputedState(parent);
|
|
118
|
-
if (parent.parent && currentParentState !== newParentState) {
|
|
119
|
-
this.reportChildStateChanged(parent.parent, currentParentState, newParentState);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
updateState(item, oldState, newState) {
|
|
124
|
-
let parent = item.parent;
|
|
125
|
-
while (parent && 'parent' in parent) { // parent is a test item
|
|
126
|
-
let counts = this.stateCounts.get(parent);
|
|
127
|
-
if (!counts) {
|
|
128
|
-
counts = [];
|
|
129
|
-
counts[test_service_1.TestExecutionState.Queued] = 0;
|
|
130
|
-
counts[test_service_1.TestExecutionState.Running] = 0;
|
|
131
|
-
counts[test_service_1.TestExecutionState.Passed] = 0;
|
|
132
|
-
counts[test_service_1.TestExecutionState.Failed] = 0;
|
|
133
|
-
counts[test_service_1.TestExecutionState.Skipped] = 0;
|
|
134
|
-
counts[test_service_1.TestExecutionState.Errored] = 0;
|
|
135
|
-
this.stateCounts.set(parent, counts);
|
|
136
|
-
}
|
|
137
|
-
if (oldState) {
|
|
138
|
-
counts[oldState]--;
|
|
139
|
-
}
|
|
140
|
-
counts[newState]++;
|
|
141
|
-
parent = parent.parent;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
getComputedState(item) {
|
|
145
|
-
const counts = this.stateCounts.get(item);
|
|
146
|
-
if (counts) {
|
|
147
|
-
if (counts[test_service_1.TestExecutionState.Errored] > 0) {
|
|
148
|
-
return test_service_1.TestExecutionState.Errored;
|
|
149
|
-
}
|
|
150
|
-
else if (counts[test_service_1.TestExecutionState.Failed] > 0) {
|
|
151
|
-
return test_service_1.TestExecutionState.Failed;
|
|
152
|
-
}
|
|
153
|
-
else if (counts[test_service_1.TestExecutionState.Running] > 0) {
|
|
154
|
-
return test_service_1.TestExecutionState.Running;
|
|
155
|
-
}
|
|
156
|
-
else if (counts[test_service_1.TestExecutionState.Queued] > 0) {
|
|
157
|
-
return test_service_1.TestExecutionState.Queued;
|
|
158
|
-
}
|
|
159
|
-
else if (counts[test_service_1.TestExecutionState.Passed] > 0) {
|
|
160
|
-
return test_service_1.TestExecutionState.Passed;
|
|
161
|
-
}
|
|
162
|
-
else if (counts[test_service_1.TestExecutionState.Skipped] > 0) {
|
|
163
|
-
return test_service_1.TestExecutionState.Skipped;
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
return undefined;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
return undefined;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2023 STMicroelectronics and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.TestExecutionStateManager = void 0;
|
|
28
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
+
const test_service_1 = require("../test-service");
|
|
30
|
+
/**
|
|
31
|
+
* This class manages the state of "internal" nodes in the test tree
|
|
32
|
+
*/
|
|
33
|
+
let TestExecutionStateManager = class TestExecutionStateManager {
|
|
34
|
+
constructor() {
|
|
35
|
+
this.executionStates = new Map();
|
|
36
|
+
}
|
|
37
|
+
init() {
|
|
38
|
+
this.testService.getControllers().forEach(controller => this.addController(controller));
|
|
39
|
+
this.testService.onControllersChanged(controllerDelta => {
|
|
40
|
+
var _a;
|
|
41
|
+
(_a = controllerDelta.added) === null || _a === void 0 ? void 0 : _a.forEach(controller => this.addController(controller));
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
addController(controller) {
|
|
45
|
+
controller.testRuns.forEach(run => this.addRun(run));
|
|
46
|
+
controller.onRunsChanged(runDelta => {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
(_a = runDelta.added) === null || _a === void 0 ? void 0 : _a.forEach(run => this.addRun(run));
|
|
49
|
+
(_b = runDelta.removed) === null || _b === void 0 ? void 0 : _b.forEach(run => {
|
|
50
|
+
this.executionStates.delete(run);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
addRun(run) {
|
|
55
|
+
this.executionStates.set(run, new TestExecutionStateMap);
|
|
56
|
+
run.onDidChangeTestState(updates => {
|
|
57
|
+
updates.forEach(update => {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
this.updateState(run, update.test, (_a = update.oldState) === null || _a === void 0 ? void 0 : _a.state, (_b = update.newState) === null || _b === void 0 ? void 0 : _b.state);
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
updateState(run, item, oldState, newState) {
|
|
64
|
+
const map = this.executionStates.get(run);
|
|
65
|
+
map.reportState(item, oldState, newState);
|
|
66
|
+
}
|
|
67
|
+
getComputedState(run, item) {
|
|
68
|
+
var _a;
|
|
69
|
+
return (_a = this.executionStates.get(run)) === null || _a === void 0 ? void 0 : _a.getComputedState(item);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, inversify_1.inject)(test_service_1.TestService),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], TestExecutionStateManager.prototype, "testService", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, inversify_1.postConstruct)(),
|
|
78
|
+
__metadata("design:type", Function),
|
|
79
|
+
__metadata("design:paramtypes", []),
|
|
80
|
+
__metadata("design:returntype", void 0)
|
|
81
|
+
], TestExecutionStateManager.prototype, "init", null);
|
|
82
|
+
TestExecutionStateManager = __decorate([
|
|
83
|
+
(0, inversify_1.injectable)()
|
|
84
|
+
], TestExecutionStateManager);
|
|
85
|
+
exports.TestExecutionStateManager = TestExecutionStateManager;
|
|
86
|
+
class TestExecutionStateMap {
|
|
87
|
+
constructor() {
|
|
88
|
+
this.stateCounts = new Map();
|
|
89
|
+
}
|
|
90
|
+
reportState(item, oldState, newState) {
|
|
91
|
+
if (oldState !== newState) {
|
|
92
|
+
if (item.parent) {
|
|
93
|
+
this.reportChildStateChanged(item.parent, oldState, newState);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
reportChildStateChanged(parent, oldState, newState) {
|
|
98
|
+
if (oldState !== newState) {
|
|
99
|
+
const currentParentState = this.getComputedState(parent);
|
|
100
|
+
let counts = this.stateCounts.get(parent);
|
|
101
|
+
if (!counts) {
|
|
102
|
+
counts = [];
|
|
103
|
+
counts[test_service_1.TestExecutionState.Queued] = 0;
|
|
104
|
+
counts[test_service_1.TestExecutionState.Running] = 0;
|
|
105
|
+
counts[test_service_1.TestExecutionState.Passed] = 0;
|
|
106
|
+
counts[test_service_1.TestExecutionState.Failed] = 0;
|
|
107
|
+
counts[test_service_1.TestExecutionState.Skipped] = 0;
|
|
108
|
+
counts[test_service_1.TestExecutionState.Errored] = 0;
|
|
109
|
+
this.stateCounts.set(parent, counts);
|
|
110
|
+
}
|
|
111
|
+
if (oldState) {
|
|
112
|
+
counts[oldState]--;
|
|
113
|
+
}
|
|
114
|
+
if (newState) {
|
|
115
|
+
counts[newState]++;
|
|
116
|
+
}
|
|
117
|
+
const newParentState = this.getComputedState(parent);
|
|
118
|
+
if (parent.parent && currentParentState !== newParentState) {
|
|
119
|
+
this.reportChildStateChanged(parent.parent, currentParentState, newParentState);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
updateState(item, oldState, newState) {
|
|
124
|
+
let parent = item.parent;
|
|
125
|
+
while (parent && 'parent' in parent) { // parent is a test item
|
|
126
|
+
let counts = this.stateCounts.get(parent);
|
|
127
|
+
if (!counts) {
|
|
128
|
+
counts = [];
|
|
129
|
+
counts[test_service_1.TestExecutionState.Queued] = 0;
|
|
130
|
+
counts[test_service_1.TestExecutionState.Running] = 0;
|
|
131
|
+
counts[test_service_1.TestExecutionState.Passed] = 0;
|
|
132
|
+
counts[test_service_1.TestExecutionState.Failed] = 0;
|
|
133
|
+
counts[test_service_1.TestExecutionState.Skipped] = 0;
|
|
134
|
+
counts[test_service_1.TestExecutionState.Errored] = 0;
|
|
135
|
+
this.stateCounts.set(parent, counts);
|
|
136
|
+
}
|
|
137
|
+
if (oldState) {
|
|
138
|
+
counts[oldState]--;
|
|
139
|
+
}
|
|
140
|
+
counts[newState]++;
|
|
141
|
+
parent = parent.parent;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
getComputedState(item) {
|
|
145
|
+
const counts = this.stateCounts.get(item);
|
|
146
|
+
if (counts) {
|
|
147
|
+
if (counts[test_service_1.TestExecutionState.Errored] > 0) {
|
|
148
|
+
return test_service_1.TestExecutionState.Errored;
|
|
149
|
+
}
|
|
150
|
+
else if (counts[test_service_1.TestExecutionState.Failed] > 0) {
|
|
151
|
+
return test_service_1.TestExecutionState.Failed;
|
|
152
|
+
}
|
|
153
|
+
else if (counts[test_service_1.TestExecutionState.Running] > 0) {
|
|
154
|
+
return test_service_1.TestExecutionState.Running;
|
|
155
|
+
}
|
|
156
|
+
else if (counts[test_service_1.TestExecutionState.Queued] > 0) {
|
|
157
|
+
return test_service_1.TestExecutionState.Queued;
|
|
158
|
+
}
|
|
159
|
+
else if (counts[test_service_1.TestExecutionState.Passed] > 0) {
|
|
160
|
+
return test_service_1.TestExecutionState.Passed;
|
|
161
|
+
}
|
|
162
|
+
else if (counts[test_service_1.TestExecutionState.Skipped] > 0) {
|
|
163
|
+
return test_service_1.TestExecutionState.Skipped;
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
return undefined;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
return undefined;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
174
|
//# sourceMappingURL=test-execution-state-manager.js.map
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { TestController, TestOutputItem, TestRun, TestService, TestState, TestStateChangedEvent } from '../test-service';
|
|
2
|
-
import { Disposable, Emitter, Event } from '@theia/core';
|
|
3
|
-
import { TestContextKeyService } from './test-context-key-service';
|
|
4
|
-
export interface ActiveRunEvent {
|
|
5
|
-
controller: TestController;
|
|
6
|
-
activeRun: TestRun | undefined;
|
|
7
|
-
}
|
|
8
|
-
export interface TestOutputSource {
|
|
9
|
-
readonly output: readonly TestOutputItem[];
|
|
10
|
-
onDidAddTestOutput: Event<TestOutputItem[]>;
|
|
11
|
-
}
|
|
12
|
-
export interface ActiveTestStateChangedEvent {
|
|
13
|
-
controller: TestController;
|
|
14
|
-
testRun: TestRun;
|
|
15
|
-
statedDelta: TestStateChangedEvent[];
|
|
16
|
-
}
|
|
17
|
-
interface ActiveTestRunInfo {
|
|
18
|
-
run: TestRun;
|
|
19
|
-
toDispose: Disposable;
|
|
20
|
-
}
|
|
21
|
-
export declare class TestOutputUIModel {
|
|
22
|
-
protected readonly testContextKeys: TestContextKeyService;
|
|
23
|
-
protected testService: TestService;
|
|
24
|
-
protected readonly activeRuns: Map<string, ActiveTestRunInfo>;
|
|
25
|
-
protected readonly controllerListeners: Map<string, Disposable>;
|
|
26
|
-
private _selectedOutputSource;
|
|
27
|
-
private _selectedTestState;
|
|
28
|
-
init(): void;
|
|
29
|
-
protected removeController(id: string): void;
|
|
30
|
-
protected addController(controller: TestController): void;
|
|
31
|
-
getActiveTestRun(controller: TestController): TestRun | undefined;
|
|
32
|
-
protected readonly onDidChangeActiveTestRunEmitter: Emitter<ActiveRunEvent>;
|
|
33
|
-
onDidChangeActiveTestRun: Event<ActiveRunEvent>;
|
|
34
|
-
setActiveTestRun(run: TestRun): void;
|
|
35
|
-
doSetActiveRun(controller: TestController, run: TestRun | undefined): void;
|
|
36
|
-
private onDidChangeActiveTestStateEmitter;
|
|
37
|
-
onDidChangeActiveTestState: Event<ActiveTestStateChangedEvent>;
|
|
38
|
-
get selectedOutputSource(): TestOutputSource | undefined;
|
|
39
|
-
set selectedOutputSource(element: TestOutputSource | undefined);
|
|
40
|
-
protected readonly onDidChangeSelectedOutputSourceEmitter: Emitter<TestOutputSource | undefined>;
|
|
41
|
-
readonly onDidChangeSelectedOutputSource: Event<TestOutputSource | undefined>;
|
|
42
|
-
get selectedTestState(): TestState | undefined;
|
|
43
|
-
set selectedTestState(element: TestState | undefined);
|
|
44
|
-
protected readonly onDidChangeSelectedTestStateEmitter: Emitter<TestState | undefined>;
|
|
45
|
-
readonly onDidChangeSelectedTestState: Event<TestState | undefined>;
|
|
46
|
-
}
|
|
47
|
-
export {};
|
|
1
|
+
import { TestController, TestOutputItem, TestRun, TestService, TestState, TestStateChangedEvent } from '../test-service';
|
|
2
|
+
import { Disposable, Emitter, Event } from '@theia/core';
|
|
3
|
+
import { TestContextKeyService } from './test-context-key-service';
|
|
4
|
+
export interface ActiveRunEvent {
|
|
5
|
+
controller: TestController;
|
|
6
|
+
activeRun: TestRun | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface TestOutputSource {
|
|
9
|
+
readonly output: readonly TestOutputItem[];
|
|
10
|
+
onDidAddTestOutput: Event<TestOutputItem[]>;
|
|
11
|
+
}
|
|
12
|
+
export interface ActiveTestStateChangedEvent {
|
|
13
|
+
controller: TestController;
|
|
14
|
+
testRun: TestRun;
|
|
15
|
+
statedDelta: TestStateChangedEvent[];
|
|
16
|
+
}
|
|
17
|
+
interface ActiveTestRunInfo {
|
|
18
|
+
run: TestRun;
|
|
19
|
+
toDispose: Disposable;
|
|
20
|
+
}
|
|
21
|
+
export declare class TestOutputUIModel {
|
|
22
|
+
protected readonly testContextKeys: TestContextKeyService;
|
|
23
|
+
protected testService: TestService;
|
|
24
|
+
protected readonly activeRuns: Map<string, ActiveTestRunInfo>;
|
|
25
|
+
protected readonly controllerListeners: Map<string, Disposable>;
|
|
26
|
+
private _selectedOutputSource;
|
|
27
|
+
private _selectedTestState;
|
|
28
|
+
init(): void;
|
|
29
|
+
protected removeController(id: string): void;
|
|
30
|
+
protected addController(controller: TestController): void;
|
|
31
|
+
getActiveTestRun(controller: TestController): TestRun | undefined;
|
|
32
|
+
protected readonly onDidChangeActiveTestRunEmitter: Emitter<ActiveRunEvent>;
|
|
33
|
+
onDidChangeActiveTestRun: Event<ActiveRunEvent>;
|
|
34
|
+
setActiveTestRun(run: TestRun): void;
|
|
35
|
+
doSetActiveRun(controller: TestController, run: TestRun | undefined): void;
|
|
36
|
+
private onDidChangeActiveTestStateEmitter;
|
|
37
|
+
onDidChangeActiveTestState: Event<ActiveTestStateChangedEvent>;
|
|
38
|
+
get selectedOutputSource(): TestOutputSource | undefined;
|
|
39
|
+
set selectedOutputSource(element: TestOutputSource | undefined);
|
|
40
|
+
protected readonly onDidChangeSelectedOutputSourceEmitter: Emitter<TestOutputSource | undefined>;
|
|
41
|
+
readonly onDidChangeSelectedOutputSource: Event<TestOutputSource | undefined>;
|
|
42
|
+
get selectedTestState(): TestState | undefined;
|
|
43
|
+
set selectedTestState(element: TestState | undefined);
|
|
44
|
+
protected readonly onDidChangeSelectedTestStateEmitter: Emitter<TestState | undefined>;
|
|
45
|
+
readonly onDidChangeSelectedTestState: Event<TestState | undefined>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
48
48
|
//# sourceMappingURL=test-output-ui-model.d.ts.map
|