@theia/test 1.53.0-next.55 → 1.53.0-next.64

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@theia/test",
3
- "version": "1.53.0-next.55+d1a989a68c",
3
+ "version": "1.53.0-next.64+23b351d26",
4
4
  "description": "Theia - Test Extension",
5
5
  "dependencies": {
6
- "@theia/core": "1.53.0-next.55+d1a989a68c",
7
- "@theia/editor": "1.53.0-next.55+d1a989a68c",
8
- "@theia/filesystem": "1.53.0-next.55+d1a989a68c",
9
- "@theia/navigator": "1.53.0-next.55+d1a989a68c",
10
- "@theia/terminal": "1.53.0-next.55+d1a989a68c",
6
+ "@theia/core": "1.53.0-next.64+23b351d26",
7
+ "@theia/editor": "1.53.0-next.64+23b351d26",
8
+ "@theia/filesystem": "1.53.0-next.64+23b351d26",
9
+ "@theia/navigator": "1.53.0-next.64+23b351d26",
10
+ "@theia/terminal": "1.53.0-next.64+23b351d26",
11
11
  "xterm": "^4.16.0",
12
12
  "xterm-addon-fit": "^0.5.0"
13
13
  },
@@ -49,5 +49,5 @@
49
49
  "nyc": {
50
50
  "extends": "../../configs/nyc.json"
51
51
  },
52
- "gitHead": "d1a989a68c1b5ec1f9098e9126653c6346844769"
52
+ "gitHead": "23b351d26346a2b5d6aca3ee81fba59c056132f7"
53
53
  }
@@ -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
  }
@@ -1,53 +1,53 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2024 STMicroelectronics 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
- import { inject, injectable } from '@theia/core/shared/inversify';
18
- import { Widget } from '@theia/core/lib/browser';
19
- import { TestResultViewContribution } from './view/test-result-view-contribution';
20
- import { TestViewContribution } from './view/test-view-contribution';
21
- import { TestPreferences } from './test-preferences';
22
-
23
- export interface TestExecutionProgressService {
24
- onTestRunRequested(preserveFocus: boolean): Promise<void>;
25
- }
26
-
27
- export const TestExecutionProgressService = Symbol('TestExecutionProgressService');
28
-
29
- @injectable()
30
- export class DefaultTestExecutionProgressService implements TestExecutionProgressService {
31
-
32
- @inject(TestResultViewContribution)
33
- protected readonly testResultView: TestResultViewContribution;
34
-
35
- @inject(TestViewContribution)
36
- protected readonly testView: TestViewContribution;
37
-
38
- @inject(TestPreferences)
39
- protected readonly testPreferences: TestPreferences;
40
-
41
- async onTestRunRequested(preserveFocus: boolean): Promise<void> {
42
- if (!preserveFocus) {
43
- const openTesting = this.testPreferences['testing.openTesting'];
44
- if (openTesting === 'openOnTestStart') {
45
- this.openTestResultView();
46
- }
47
- }
48
- }
49
-
50
- async openTestResultView(): Promise<Widget> {
51
- return this.testResultView.openView({ activate: true });
52
- }
53
- }
1
+ // *****************************************************************************
2
+ // Copyright (C) 2024 STMicroelectronics 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
+ import { inject, injectable } from '@theia/core/shared/inversify';
18
+ import { Widget } from '@theia/core/lib/browser';
19
+ import { TestResultViewContribution } from './view/test-result-view-contribution';
20
+ import { TestViewContribution } from './view/test-view-contribution';
21
+ import { TestPreferences } from './test-preferences';
22
+
23
+ export interface TestExecutionProgressService {
24
+ onTestRunRequested(preserveFocus: boolean): Promise<void>;
25
+ }
26
+
27
+ export const TestExecutionProgressService = Symbol('TestExecutionProgressService');
28
+
29
+ @injectable()
30
+ export class DefaultTestExecutionProgressService implements TestExecutionProgressService {
31
+
32
+ @inject(TestResultViewContribution)
33
+ protected readonly testResultView: TestResultViewContribution;
34
+
35
+ @inject(TestViewContribution)
36
+ protected readonly testView: TestViewContribution;
37
+
38
+ @inject(TestPreferences)
39
+ protected readonly testPreferences: TestPreferences;
40
+
41
+ async onTestRunRequested(preserveFocus: boolean): Promise<void> {
42
+ if (!preserveFocus) {
43
+ const openTesting = this.testPreferences['testing.openTesting'];
44
+ if (openTesting === 'openOnTestStart') {
45
+ this.openTestResultView();
46
+ }
47
+ }
48
+ }
49
+
50
+ async openTestResultView(): Promise<Widget> {
51
+ return this.testResultView.openView({ activate: true });
52
+ }
53
+ }
@@ -1,58 +1,58 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2024 STMicroelectronics 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
- import { interfaces } from '@theia/core/shared/inversify';
18
- import { createPreferenceProxy, PreferenceProxy, PreferenceService, PreferenceContribution, PreferenceSchema } from '@theia/core/lib/browser';
19
- import { nls } from '@theia/core/lib/common/nls';
20
-
21
- export const TestConfigSchema: PreferenceSchema = {
22
- type: 'object',
23
- properties: {
24
- 'testing.openTesting': {
25
- type: 'string',
26
- enum: ['neverOpen', 'openOnTestStart'],
27
- enumDescriptions: [
28
- nls.localizeByDefault('Never automatically open the testing views'),
29
- nls.localizeByDefault('Open the test results view when tests start'),
30
- ],
31
- description: nls.localizeByDefault('Controls when the testing view should open.'),
32
- default: 'neverOpen',
33
- scope: 'resource',
34
- }
35
- }
36
- };
37
-
38
- export interface TestConfiguration {
39
- 'testing.openTesting': 'neverOpen' | 'openOnTestStart';
40
- }
41
-
42
- export const TestPreferenceContribution = Symbol('TestPreferenceContribution');
43
- export const TestPreferences = Symbol('TestPreferences');
44
- export type TestPreferences = PreferenceProxy<TestConfiguration>;
45
-
46
- export function createTestPreferences(preferences: PreferenceService, schema: PreferenceSchema = TestConfigSchema): TestPreferences {
47
- return createPreferenceProxy(preferences, schema);
48
- }
49
-
50
- export const bindTestPreferences = (bind: interfaces.Bind): void => {
51
- bind(TestPreferences).toDynamicValue(ctx => {
52
- const preferences = ctx.container.get<PreferenceService>(PreferenceService);
53
- const contribution = ctx.container.get<PreferenceContribution>(TestPreferenceContribution);
54
- return createTestPreferences(preferences, contribution.schema);
55
- }).inSingletonScope();
56
- bind(TestPreferenceContribution).toConstantValue({ schema: TestConfigSchema });
57
- bind(PreferenceContribution).toService(TestPreferenceContribution);
58
- };
1
+ // *****************************************************************************
2
+ // Copyright (C) 2024 STMicroelectronics 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
+ import { interfaces } from '@theia/core/shared/inversify';
18
+ import { createPreferenceProxy, PreferenceProxy, PreferenceService, PreferenceContribution, PreferenceSchema } from '@theia/core/lib/browser';
19
+ import { nls } from '@theia/core/lib/common/nls';
20
+
21
+ export const TestConfigSchema: PreferenceSchema = {
22
+ type: 'object',
23
+ properties: {
24
+ 'testing.openTesting': {
25
+ type: 'string',
26
+ enum: ['neverOpen', 'openOnTestStart'],
27
+ enumDescriptions: [
28
+ nls.localizeByDefault('Never automatically open the testing views'),
29
+ nls.localizeByDefault('Open the test results view when tests start'),
30
+ ],
31
+ description: nls.localizeByDefault('Controls when the testing view should open.'),
32
+ default: 'neverOpen',
33
+ scope: 'resource',
34
+ }
35
+ }
36
+ };
37
+
38
+ export interface TestConfiguration {
39
+ 'testing.openTesting': 'neverOpen' | 'openOnTestStart';
40
+ }
41
+
42
+ export const TestPreferenceContribution = Symbol('TestPreferenceContribution');
43
+ export const TestPreferences = Symbol('TestPreferences');
44
+ export type TestPreferences = PreferenceProxy<TestConfiguration>;
45
+
46
+ export function createTestPreferences(preferences: PreferenceService, schema: PreferenceSchema = TestConfigSchema): TestPreferences {
47
+ return createPreferenceProxy(preferences, schema);
48
+ }
49
+
50
+ export const bindTestPreferences = (bind: interfaces.Bind): void => {
51
+ bind(TestPreferences).toDynamicValue(ctx => {
52
+ const preferences = ctx.container.get<PreferenceService>(PreferenceService);
53
+ const contribution = ctx.container.get<PreferenceContribution>(TestPreferenceContribution);
54
+ return createTestPreferences(preferences, contribution.schema);
55
+ }).inSingletonScope();
56
+ bind(TestPreferenceContribution).toConstantValue({ schema: TestConfigSchema });
57
+ bind(PreferenceContribution).toService(TestPreferenceContribution);
58
+ };