@@ -15,14 +15,8 @@ import {
1515} from 'vscode' ;
1616import { ITestDebugLauncher } from '../../common/types' ;
1717import { IPythonExecutionFactory } from '../../../common/process/types' ;
18- import { EnvironmentVariables } from '../../../common/variables/types' ;
1918import { PythonEnvironment } from '../../../pythonEnvironments/info' ;
2019
21- export type TestRunInstanceOptions = TestRunOptions & {
22- exclude ?: readonly TestItem [ ] ;
23- debug : boolean ;
24- } ;
25-
2620export enum TestDataKinds {
2721 Workspace ,
2822 FolderOrFile ,
@@ -50,13 +44,6 @@ export interface ITestController {
5044 onRunWithoutConfiguration : Event < WorkspaceFolder [ ] > ;
5145}
5246
53- export interface ITestRun {
54- includes : readonly TestItem [ ] ;
55- excludes : readonly TestItem [ ] ;
56- runKind : TestRunProfileKind ;
57- runInstance : TestRun ;
58- }
59-
6047export const ITestFrameworkController = Symbol ( 'ITestFrameworkController' ) ;
6148export interface ITestFrameworkController {
6249 resolveChildren ( testController : TestController , item : TestItem , token ?: CancellationToken ) : Promise < void > ;
@@ -65,12 +52,7 @@ export interface ITestFrameworkController {
6552export const ITestsRunner = Symbol ( 'ITestsRunner' ) ;
6653export interface ITestsRunner { }
6754
68- export type TestRunOptions = {
69- workspaceFolder : Uri ;
70- cwd : string ;
71- args : string [ ] ;
72- token : CancellationToken ;
73- } ;
55+
7456
7557// We expose these here as a convenience and to cut down on churn
7658// elsewhere in the code.
@@ -136,43 +118,33 @@ export type TestCommandOptions = {
136118 testIds ?: string [ ] ;
137119} ;
138120
139- export type TestCommandOptionsPytest = {
140- workspaceFolder : Uri ;
141- cwd : string ;
142- commandStr : string ;
143- token ?: CancellationToken ;
144- outChannel ?: OutputChannel ;
145- debugBool ?: boolean ;
146- testIds ?: string [ ] ;
147- env : { [ key : string ] : string | undefined } ;
148- } ;
149121
150- /**
151- * Interface describing the server that will send test commands to the Python side, and process responses.
152- *
153- * Consumers will call sendCommand in order to execute Python-related code,
154- * and will subscribe to the onDataReceived event to wait for the results.
155- */
156- export interface ITestServer {
157- readonly onDataReceived : Event < DataReceivedEvent > ;
158- readonly onRunDataReceived : Event < DataReceivedEvent > ;
159- readonly onDiscoveryDataReceived : Event < DataReceivedEvent > ;
160- sendCommand (
161- options : TestCommandOptions ,
162- env : EnvironmentVariables ,
163- runTestIdsPort ?: string ,
164- runInstance ?: TestRun ,
165- testIds ?: string [ ] ,
166- callback ?: ( ) => void ,
167- executionFactory ?: IPythonExecutionFactory ,
168- ) : Promise < void > ;
169- serverReady ( ) : Promise < void > ;
170- getPort ( ) : number ;
171- createUUID ( cwd : string ) : string ;
172- deleteUUID ( uuid : string ) : void ;
173- triggerRunDataReceivedEvent ( data : DataReceivedEvent ) : void ;
174- triggerDiscoveryDataReceivedEvent ( data : DataReceivedEvent ) : void ;
175- }
122+ // / **
123+ // * Interface describing the server that will send test commands to the Python side, and process responses.
124+ // *
125+ // * Consumers will call sendCommand in order to execute Python-related code,
126+ // * and will subscribe to the onDataReceived event to wait for the results.
127+ // */
128+ // export interface ITestServer {
129+ // readonly onDataReceived: Event<DataReceivedEvent>;
130+ // readonly onRunDataReceived: Event<DataReceivedEvent>;
131+ // readonly onDiscoveryDataReceived: Event<DataReceivedEvent>;
132+ // sendCommand(
133+ // options: TestCommandOptions,
134+ // env: EnvironmentVariables,
135+ // runTestIdsPort?: string,
136+ // runInstance?: TestRun,
137+ // testIds?: string[],
138+ // callback?: () => void,
139+ // executionFactory?: IPythonExecutionFactory,
140+ // ): Promise<void>;
141+ // serverReady(): Promise<void>;
142+ // getPort(): number;
143+ // createUUID(cwd: string): string;
144+ // deleteUUID(uuid: string): void;
145+ // triggerRunDataReceivedEvent(data: DataReceivedEvent): void;
146+ // triggerDiscoveryDataReceivedEvent(data: DataReceivedEvent): void;
147+ // }
176148export interface ITestResultResolver {
177149 runIdToVSid : Map < string , string > ;
178150 runIdToTestItem : Map < string , TestItem > ;
0 commit comments