@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,140 +1,140 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2022 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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
const tree_delta_1 = require("./tree-delta");
|
|
18
|
-
const chai = require("chai");
|
|
19
|
-
const expect = chai.expect;
|
|
20
|
-
describe('TreeDeltaBuilder tests', () => {
|
|
21
|
-
it('should split paths', () => {
|
|
22
|
-
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
23
|
-
builder.reportAdded(['a', 'b', 'c'], {
|
|
24
|
-
id: 'c',
|
|
25
|
-
prop: 17
|
|
26
|
-
});
|
|
27
|
-
builder.reportRemoved(['a', 'b', 'd', 'e']);
|
|
28
|
-
const expected = {
|
|
29
|
-
path: ['a', 'b'],
|
|
30
|
-
type: tree_delta_1.DeltaKind.NONE,
|
|
31
|
-
childDeltas: [
|
|
32
|
-
{
|
|
33
|
-
path: ['d', 'e'],
|
|
34
|
-
type: tree_delta_1.DeltaKind.REMOVED,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
type: tree_delta_1.DeltaKind.ADDED,
|
|
38
|
-
path: ['c'],
|
|
39
|
-
value: { id: 'c', prop: 17 },
|
|
40
|
-
},
|
|
41
|
-
]
|
|
42
|
-
};
|
|
43
|
-
expect(builder.currentDelta).deep.equal([
|
|
44
|
-
expected
|
|
45
|
-
]);
|
|
46
|
-
});
|
|
47
|
-
it('should merge add/remove child', () => {
|
|
48
|
-
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
49
|
-
builder.reportAdded(['a', 'b', 'c'], {
|
|
50
|
-
id: 'c',
|
|
51
|
-
prop: 17
|
|
52
|
-
});
|
|
53
|
-
builder.reportRemoved(['a', 'b', 'c', 'd']);
|
|
54
|
-
expect(builder.currentDelta).deep.equal([{
|
|
55
|
-
path: ['a', 'b', 'c'],
|
|
56
|
-
type: tree_delta_1.DeltaKind.ADDED,
|
|
57
|
-
value: { id: 'c', prop: 17 },
|
|
58
|
-
}]);
|
|
59
|
-
});
|
|
60
|
-
it('should merge change', () => {
|
|
61
|
-
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
62
|
-
builder.reportChanged(['a', 'b', 'c'], { id: 'c', prop: 17 });
|
|
63
|
-
builder.reportChanged(['a', 'b', 'c'], { prop: 18 });
|
|
64
|
-
builder.reportChanged(['a', 'b', 'c'], { prop: 19 });
|
|
65
|
-
expect(builder.currentDelta).deep.equal([
|
|
66
|
-
{
|
|
67
|
-
type: tree_delta_1.DeltaKind.CHANGED,
|
|
68
|
-
path: ['a', 'b', 'c'],
|
|
69
|
-
value: { id: 'c', prop: 19 },
|
|
70
|
-
}
|
|
71
|
-
]);
|
|
72
|
-
});
|
|
73
|
-
it('should merge add/change', () => {
|
|
74
|
-
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
75
|
-
const obj = {
|
|
76
|
-
id: 'c',
|
|
77
|
-
prop: 17
|
|
78
|
-
};
|
|
79
|
-
builder.reportAdded(['a', 'b', 'c'], obj);
|
|
80
|
-
obj.prop = 18;
|
|
81
|
-
builder.reportChanged(['a', 'b', 'c'], { prop: 18 });
|
|
82
|
-
expect(builder.currentDelta).deep.equal([
|
|
83
|
-
{
|
|
84
|
-
type: tree_delta_1.DeltaKind.ADDED,
|
|
85
|
-
path: ['a', 'b', 'c'],
|
|
86
|
-
value: { id: 'c', prop: 18 },
|
|
87
|
-
}
|
|
88
|
-
]);
|
|
89
|
-
});
|
|
90
|
-
it('should handle adds/delete', () => {
|
|
91
|
-
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
92
|
-
builder.reportAdded(['a', 'b'], { id: 'c', prop: 14 });
|
|
93
|
-
builder.reportRemoved(['a', 'b']);
|
|
94
|
-
expect(builder.currentDelta).deep.equal([]);
|
|
95
|
-
builder.reportAdded(['a', 'b'], { id: 'c', prop: 20 });
|
|
96
|
-
expect(builder.currentDelta).deep.equal([{
|
|
97
|
-
path: ['a', 'b'],
|
|
98
|
-
type: tree_delta_1.DeltaKind.ADDED,
|
|
99
|
-
value: { id: 'c', prop: 20 }
|
|
100
|
-
}]);
|
|
101
|
-
});
|
|
102
|
-
it('should handle delete/add', () => {
|
|
103
|
-
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
104
|
-
builder.reportRemoved(['a', 'b']);
|
|
105
|
-
builder.reportAdded(['a', 'b'], { id: 'c', prop: 14 });
|
|
106
|
-
expect(builder.currentDelta).deep.equal([{
|
|
107
|
-
path: ['a', 'b'],
|
|
108
|
-
type: tree_delta_1.DeltaKind.CHANGED,
|
|
109
|
-
value: { id: 'c', prop: 14 }
|
|
110
|
-
}]);
|
|
111
|
-
builder.reportRemoved(['a', 'b']);
|
|
112
|
-
expect(builder.currentDelta).deep.equal([{
|
|
113
|
-
path: ['a', 'b'],
|
|
114
|
-
type: tree_delta_1.DeltaKind.REMOVED,
|
|
115
|
-
}]);
|
|
116
|
-
});
|
|
117
|
-
it('should handle changed below changed', () => {
|
|
118
|
-
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
119
|
-
builder.reportChanged(['a', 'b', 'c', 'e'], { id: 'e', prop: 14 });
|
|
120
|
-
builder.reportChanged(['a', 'b', 'c', 'd'], { id: 'd', prop: 23 });
|
|
121
|
-
builder.reportChanged(['a', 'b', 'c'], { id: 'c', prop: 27 });
|
|
122
|
-
expect(builder.currentDelta).deep.equal([{
|
|
123
|
-
path: ['a', 'b', 'c'],
|
|
124
|
-
type: tree_delta_1.DeltaKind.CHANGED,
|
|
125
|
-
value: { id: 'c', prop: 27 },
|
|
126
|
-
childDeltas: [
|
|
127
|
-
{
|
|
128
|
-
path: ['d'],
|
|
129
|
-
type: tree_delta_1.DeltaKind.CHANGED,
|
|
130
|
-
value: { id: 'd', prop: 23 }
|
|
131
|
-
}, {
|
|
132
|
-
path: ['e'],
|
|
133
|
-
type: tree_delta_1.DeltaKind.CHANGED,
|
|
134
|
-
value: { id: 'e', prop: 14 }
|
|
135
|
-
}
|
|
136
|
-
]
|
|
137
|
-
}]);
|
|
138
|
-
});
|
|
139
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2022 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
const tree_delta_1 = require("./tree-delta");
|
|
18
|
+
const chai = require("chai");
|
|
19
|
+
const expect = chai.expect;
|
|
20
|
+
describe('TreeDeltaBuilder tests', () => {
|
|
21
|
+
it('should split paths', () => {
|
|
22
|
+
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
23
|
+
builder.reportAdded(['a', 'b', 'c'], {
|
|
24
|
+
id: 'c',
|
|
25
|
+
prop: 17
|
|
26
|
+
});
|
|
27
|
+
builder.reportRemoved(['a', 'b', 'd', 'e']);
|
|
28
|
+
const expected = {
|
|
29
|
+
path: ['a', 'b'],
|
|
30
|
+
type: tree_delta_1.DeltaKind.NONE,
|
|
31
|
+
childDeltas: [
|
|
32
|
+
{
|
|
33
|
+
path: ['d', 'e'],
|
|
34
|
+
type: tree_delta_1.DeltaKind.REMOVED,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: tree_delta_1.DeltaKind.ADDED,
|
|
38
|
+
path: ['c'],
|
|
39
|
+
value: { id: 'c', prop: 17 },
|
|
40
|
+
},
|
|
41
|
+
]
|
|
42
|
+
};
|
|
43
|
+
expect(builder.currentDelta).deep.equal([
|
|
44
|
+
expected
|
|
45
|
+
]);
|
|
46
|
+
});
|
|
47
|
+
it('should merge add/remove child', () => {
|
|
48
|
+
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
49
|
+
builder.reportAdded(['a', 'b', 'c'], {
|
|
50
|
+
id: 'c',
|
|
51
|
+
prop: 17
|
|
52
|
+
});
|
|
53
|
+
builder.reportRemoved(['a', 'b', 'c', 'd']);
|
|
54
|
+
expect(builder.currentDelta).deep.equal([{
|
|
55
|
+
path: ['a', 'b', 'c'],
|
|
56
|
+
type: tree_delta_1.DeltaKind.ADDED,
|
|
57
|
+
value: { id: 'c', prop: 17 },
|
|
58
|
+
}]);
|
|
59
|
+
});
|
|
60
|
+
it('should merge change', () => {
|
|
61
|
+
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
62
|
+
builder.reportChanged(['a', 'b', 'c'], { id: 'c', prop: 17 });
|
|
63
|
+
builder.reportChanged(['a', 'b', 'c'], { prop: 18 });
|
|
64
|
+
builder.reportChanged(['a', 'b', 'c'], { prop: 19 });
|
|
65
|
+
expect(builder.currentDelta).deep.equal([
|
|
66
|
+
{
|
|
67
|
+
type: tree_delta_1.DeltaKind.CHANGED,
|
|
68
|
+
path: ['a', 'b', 'c'],
|
|
69
|
+
value: { id: 'c', prop: 19 },
|
|
70
|
+
}
|
|
71
|
+
]);
|
|
72
|
+
});
|
|
73
|
+
it('should merge add/change', () => {
|
|
74
|
+
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
75
|
+
const obj = {
|
|
76
|
+
id: 'c',
|
|
77
|
+
prop: 17
|
|
78
|
+
};
|
|
79
|
+
builder.reportAdded(['a', 'b', 'c'], obj);
|
|
80
|
+
obj.prop = 18;
|
|
81
|
+
builder.reportChanged(['a', 'b', 'c'], { prop: 18 });
|
|
82
|
+
expect(builder.currentDelta).deep.equal([
|
|
83
|
+
{
|
|
84
|
+
type: tree_delta_1.DeltaKind.ADDED,
|
|
85
|
+
path: ['a', 'b', 'c'],
|
|
86
|
+
value: { id: 'c', prop: 18 },
|
|
87
|
+
}
|
|
88
|
+
]);
|
|
89
|
+
});
|
|
90
|
+
it('should handle adds/delete', () => {
|
|
91
|
+
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
92
|
+
builder.reportAdded(['a', 'b'], { id: 'c', prop: 14 });
|
|
93
|
+
builder.reportRemoved(['a', 'b']);
|
|
94
|
+
expect(builder.currentDelta).deep.equal([]);
|
|
95
|
+
builder.reportAdded(['a', 'b'], { id: 'c', prop: 20 });
|
|
96
|
+
expect(builder.currentDelta).deep.equal([{
|
|
97
|
+
path: ['a', 'b'],
|
|
98
|
+
type: tree_delta_1.DeltaKind.ADDED,
|
|
99
|
+
value: { id: 'c', prop: 20 }
|
|
100
|
+
}]);
|
|
101
|
+
});
|
|
102
|
+
it('should handle delete/add', () => {
|
|
103
|
+
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
104
|
+
builder.reportRemoved(['a', 'b']);
|
|
105
|
+
builder.reportAdded(['a', 'b'], { id: 'c', prop: 14 });
|
|
106
|
+
expect(builder.currentDelta).deep.equal([{
|
|
107
|
+
path: ['a', 'b'],
|
|
108
|
+
type: tree_delta_1.DeltaKind.CHANGED,
|
|
109
|
+
value: { id: 'c', prop: 14 }
|
|
110
|
+
}]);
|
|
111
|
+
builder.reportRemoved(['a', 'b']);
|
|
112
|
+
expect(builder.currentDelta).deep.equal([{
|
|
113
|
+
path: ['a', 'b'],
|
|
114
|
+
type: tree_delta_1.DeltaKind.REMOVED,
|
|
115
|
+
}]);
|
|
116
|
+
});
|
|
117
|
+
it('should handle changed below changed', () => {
|
|
118
|
+
const builder = new tree_delta_1.TreeDeltaBuilderImpl();
|
|
119
|
+
builder.reportChanged(['a', 'b', 'c', 'e'], { id: 'e', prop: 14 });
|
|
120
|
+
builder.reportChanged(['a', 'b', 'c', 'd'], { id: 'd', prop: 23 });
|
|
121
|
+
builder.reportChanged(['a', 'b', 'c'], { id: 'c', prop: 27 });
|
|
122
|
+
expect(builder.currentDelta).deep.equal([{
|
|
123
|
+
path: ['a', 'b', 'c'],
|
|
124
|
+
type: tree_delta_1.DeltaKind.CHANGED,
|
|
125
|
+
value: { id: 'c', prop: 27 },
|
|
126
|
+
childDeltas: [
|
|
127
|
+
{
|
|
128
|
+
path: ['d'],
|
|
129
|
+
type: tree_delta_1.DeltaKind.CHANGED,
|
|
130
|
+
value: { id: 'd', prop: 23 }
|
|
131
|
+
}, {
|
|
132
|
+
path: ['e'],
|
|
133
|
+
type: tree_delta_1.DeltaKind.CHANGED,
|
|
134
|
+
value: { id: 'e', prop: 14 }
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}]);
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
140
|
//# sourceMappingURL=tree-delta.spec.js.map
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/test",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.0-next.72+4a275b29d",
|
|
4
4
|
"description": "Theia - Test Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.
|
|
7
|
-
"@theia/editor": "1.
|
|
8
|
-
"@theia/filesystem": "1.
|
|
9
|
-
"@theia/navigator": "1.
|
|
10
|
-
"@theia/terminal": "1.
|
|
6
|
+
"@theia/core": "1.46.0-next.72+4a275b29d",
|
|
7
|
+
"@theia/editor": "1.46.0-next.72+4a275b29d",
|
|
8
|
+
"@theia/filesystem": "1.46.0-next.72+4a275b29d",
|
|
9
|
+
"@theia/navigator": "1.46.0-next.72+4a275b29d",
|
|
10
|
+
"@theia/terminal": "1.46.0-next.72+4a275b29d",
|
|
11
11
|
"xterm": "^4.16.0",
|
|
12
12
|
"xterm-addon-fit": "^0.5.0"
|
|
13
13
|
},
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"watch": "theiaext watch"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@theia/ext-scripts": "1.
|
|
47
|
+
"@theia/ext-scripts": "1.46.0"
|
|
48
48
|
},
|
|
49
49
|
"nyc": {
|
|
50
50
|
"extends": "../../configs/nyc.json"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "4a275b29d0db6c81190488c7f76cb667da05ef19"
|
|
53
53
|
}
|
package/src/browser/constants.ts
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2023 Mathieu Bussieres and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
/*---------------------------------------------------------------------------------------------
|
|
18
|
-
* Copyright (c) Microsoft Corporation and others. All rights reserved.
|
|
19
|
-
* Licensed under the MIT License. See https://github.com/Microsoft/vscode/blob/master/LICENSE.txt for license information.
|
|
20
|
-
*--------------------------------------------------------------------------------------------*/
|
|
21
|
-
|
|
22
|
-
// Based on https://github.com/microsoft/vscode/blob/1.72.2/src/vs/workbench/contrib/testing/common/constants.ts
|
|
23
|
-
|
|
24
|
-
/* eslint-disable import/no-extraneous-dependencies */
|
|
25
|
-
export const enum Testing {
|
|
26
|
-
// marked as "extension" so that any existing test extensions are assigned to it.
|
|
27
|
-
ViewletId = 'workbench.view.extension.test',
|
|
28
|
-
ExplorerViewId = 'workbench.view.testing',
|
|
29
|
-
OutputPeekContributionId = 'editor.contrib.testingOutputPeek',
|
|
30
|
-
DecorationsContributionId = 'editor.contrib.testingDecorations',
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const enum TestCommandId {
|
|
34
|
-
CancelTestRefreshAction = 'testing.cancelTestRefresh',
|
|
35
|
-
CancelTestRunAction = 'testing.cancelRun',
|
|
36
|
-
ClearTestResultsAction = 'testing.clearTestResults',
|
|
37
|
-
CollapseAllAction = 'testing.collapseAll',
|
|
38
|
-
ConfigureTestProfilesAction = 'testing.configureProfile',
|
|
39
|
-
DebugAction = 'testing.debug',
|
|
40
|
-
DebugAllAction = 'testing.debugAll',
|
|
41
|
-
DebugAtCursor = 'testing.debugAtCursor',
|
|
42
|
-
DebugCurrentFile = 'testing.debugCurrentFile',
|
|
43
|
-
DebugFailedTests = 'testing.debugFailTests',
|
|
44
|
-
DebugLastRun = 'testing.debugLastRun',
|
|
45
|
-
DebugSelectedAction = 'testing.debugSelected',
|
|
46
|
-
FilterAction = 'workbench.actions.treeView.testExplorer.filter',
|
|
47
|
-
GoToTest = 'testing.editFocusedTest',
|
|
48
|
-
HideTestAction = 'testing.hideTest',
|
|
49
|
-
OpenOutputPeek = 'testing.openOutputPeek',
|
|
50
|
-
RefreshTestsAction = 'testing.refreshTests',
|
|
51
|
-
ReRunFailedTests = 'testing.reRunFailTests',
|
|
52
|
-
ReRunLastRun = 'testing.reRunLastRun',
|
|
53
|
-
RunAction = 'testing.run',
|
|
54
|
-
RunAllAction = 'testing.runAll',
|
|
55
|
-
RunAtCursor = 'testing.runAtCursor',
|
|
56
|
-
RunCurrentFile = 'testing.runCurrentFile',
|
|
57
|
-
RunSelectedAction = 'testing.runSelected',
|
|
58
|
-
RunUsingProfileAction = 'testing.runUsing',
|
|
59
|
-
SearchForTestExtension = 'testing.searchForTestExtension',
|
|
60
|
-
SelectDefaultTestProfiles = 'testing.selectDefaultTestProfiles',
|
|
61
|
-
ShowMostRecentOutputAction = 'testing.showMostRecentOutput',
|
|
62
|
-
TestingSortByDurationAction = 'testing.sortByDuration',
|
|
63
|
-
TestingSortByLocationAction = 'testing.sortByLocation',
|
|
64
|
-
TestingSortByStatusAction = 'testing.sortByStatus',
|
|
65
|
-
TestingViewAsListAction = 'testing.viewAsList',
|
|
66
|
-
TestingViewAsTreeAction = 'testing.viewAsTree',
|
|
67
|
-
ToggleAutoRun = 'testing.toggleautoRun',
|
|
68
|
-
ToggleInlineTestOutput = 'testing.toggleInlineTestOutput',
|
|
69
|
-
UnhideTestAction = 'testing.unhideTest',
|
|
70
|
-
UnhideAllTestsAction = 'testing.unhideAllTests',
|
|
71
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2023 Mathieu Bussieres and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
/*---------------------------------------------------------------------------------------------
|
|
18
|
+
* Copyright (c) Microsoft Corporation and others. All rights reserved.
|
|
19
|
+
* Licensed under the MIT License. See https://github.com/Microsoft/vscode/blob/master/LICENSE.txt for license information.
|
|
20
|
+
*--------------------------------------------------------------------------------------------*/
|
|
21
|
+
|
|
22
|
+
// Based on https://github.com/microsoft/vscode/blob/1.72.2/src/vs/workbench/contrib/testing/common/constants.ts
|
|
23
|
+
|
|
24
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
25
|
+
export const enum Testing {
|
|
26
|
+
// marked as "extension" so that any existing test extensions are assigned to it.
|
|
27
|
+
ViewletId = 'workbench.view.extension.test',
|
|
28
|
+
ExplorerViewId = 'workbench.view.testing',
|
|
29
|
+
OutputPeekContributionId = 'editor.contrib.testingOutputPeek',
|
|
30
|
+
DecorationsContributionId = 'editor.contrib.testingDecorations',
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const enum TestCommandId {
|
|
34
|
+
CancelTestRefreshAction = 'testing.cancelTestRefresh',
|
|
35
|
+
CancelTestRunAction = 'testing.cancelRun',
|
|
36
|
+
ClearTestResultsAction = 'testing.clearTestResults',
|
|
37
|
+
CollapseAllAction = 'testing.collapseAll',
|
|
38
|
+
ConfigureTestProfilesAction = 'testing.configureProfile',
|
|
39
|
+
DebugAction = 'testing.debug',
|
|
40
|
+
DebugAllAction = 'testing.debugAll',
|
|
41
|
+
DebugAtCursor = 'testing.debugAtCursor',
|
|
42
|
+
DebugCurrentFile = 'testing.debugCurrentFile',
|
|
43
|
+
DebugFailedTests = 'testing.debugFailTests',
|
|
44
|
+
DebugLastRun = 'testing.debugLastRun',
|
|
45
|
+
DebugSelectedAction = 'testing.debugSelected',
|
|
46
|
+
FilterAction = 'workbench.actions.treeView.testExplorer.filter',
|
|
47
|
+
GoToTest = 'testing.editFocusedTest',
|
|
48
|
+
HideTestAction = 'testing.hideTest',
|
|
49
|
+
OpenOutputPeek = 'testing.openOutputPeek',
|
|
50
|
+
RefreshTestsAction = 'testing.refreshTests',
|
|
51
|
+
ReRunFailedTests = 'testing.reRunFailTests',
|
|
52
|
+
ReRunLastRun = 'testing.reRunLastRun',
|
|
53
|
+
RunAction = 'testing.run',
|
|
54
|
+
RunAllAction = 'testing.runAll',
|
|
55
|
+
RunAtCursor = 'testing.runAtCursor',
|
|
56
|
+
RunCurrentFile = 'testing.runCurrentFile',
|
|
57
|
+
RunSelectedAction = 'testing.runSelected',
|
|
58
|
+
RunUsingProfileAction = 'testing.runUsing',
|
|
59
|
+
SearchForTestExtension = 'testing.searchForTestExtension',
|
|
60
|
+
SelectDefaultTestProfiles = 'testing.selectDefaultTestProfiles',
|
|
61
|
+
ShowMostRecentOutputAction = 'testing.showMostRecentOutput',
|
|
62
|
+
TestingSortByDurationAction = 'testing.sortByDuration',
|
|
63
|
+
TestingSortByLocationAction = 'testing.sortByLocation',
|
|
64
|
+
TestingSortByStatusAction = 'testing.sortByStatus',
|
|
65
|
+
TestingViewAsListAction = 'testing.viewAsList',
|
|
66
|
+
TestingViewAsTreeAction = 'testing.viewAsTree',
|
|
67
|
+
ToggleAutoRun = 'testing.toggleautoRun',
|
|
68
|
+
ToggleInlineTestOutput = 'testing.toggleInlineTestOutput',
|
|
69
|
+
UnhideTestAction = 'testing.unhideTest',
|
|
70
|
+
UnhideAllTestsAction = 'testing.unhideAllTests',
|
|
71
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
* Copyright (C) 2023 STMicroelectronics and others.
|
|
3
|
-
* This program and the accompanying materials are made available under the
|
|
4
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
6
|
-
*
|
|
7
|
-
* This Source Code may also be made available under the following Secondary
|
|
8
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
9
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
10
|
-
* with the GNU Classpath Exception which is available at
|
|
11
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
12
|
-
*
|
|
13
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
14
|
-
********************************************************************************/
|
|
15
|
-
|
|
16
|
-
.theia-test-view {
|
|
17
|
-
height: 100%
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.theia-test-view .passed,
|
|
21
|
-
.theia-test-result-view .passed {
|
|
22
|
-
color: var(--theia-successBackground);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.theia-test-view .failed,
|
|
26
|
-
.theia-test-result-view .failed {
|
|
27
|
-
color: var(--theia-editorError-foreground);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.theia-test-view .errored,
|
|
31
|
-
.theia-test-result-view .errored {
|
|
32
|
-
color: var(--theia-editorError-foreground);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.theia-test-view .queued,
|
|
36
|
-
.theia-test-result-view .queued {
|
|
37
|
-
color: var(--theia-editorWarning-foreground);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.theia-test-view .theia-TreeNode:not(:hover):not(.theia-mod-selected) .theia-test-tree-inline-action {
|
|
41
|
-
display: none;
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* Copyright (C) 2023 STMicroelectronics and others.
|
|
3
|
+
* This program and the accompanying materials are made available under the
|
|
4
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
6
|
+
*
|
|
7
|
+
* This Source Code may also be made available under the following Secondary
|
|
8
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
9
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
10
|
+
* with the GNU Classpath Exception which is available at
|
|
11
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
12
|
+
*
|
|
13
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
14
|
+
********************************************************************************/
|
|
15
|
+
|
|
16
|
+
.theia-test-view {
|
|
17
|
+
height: 100%
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.theia-test-view .passed,
|
|
21
|
+
.theia-test-result-view .passed {
|
|
22
|
+
color: var(--theia-successBackground);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.theia-test-view .failed,
|
|
26
|
+
.theia-test-result-view .failed {
|
|
27
|
+
color: var(--theia-editorError-foreground);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.theia-test-view .errored,
|
|
31
|
+
.theia-test-result-view .errored {
|
|
32
|
+
color: var(--theia-editorError-foreground);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.theia-test-view .queued,
|
|
36
|
+
.theia-test-result-view .queued {
|
|
37
|
+
color: var(--theia-editorWarning-foreground);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.theia-test-view .theia-TreeNode:not(:hover):not(.theia-mod-selected) .theia-test-tree-inline-action {
|
|
41
|
+
display: none;
|
|
42
42
|
}
|