File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change
1
+ Capture telemetry when tests are disabled.
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export enum EventName {
37
37
DEBUGGER_ATTACH_TO_CHILD_PROCESS = 'DEBUGGER.ATTACH_TO_CHILD_PROCESS' ,
38
38
DEBUGGER_CONFIGURATION_PROMPTS = 'DEBUGGER.CONFIGURATION.PROMPTS' ,
39
39
UNITTEST_STOP = 'UNITTEST.STOP' ,
40
+ UNITTEST_DISABLE = 'UNITTEST.DISABLE' ,
40
41
UNITTEST_RUN = 'UNITTEST.RUN' ,
41
42
UNITTEST_DISCOVER = 'UNITTEST.DISCOVER' ,
42
43
UNITTEST_CONFIGURE = 'UNITTEST.CONFIGURE' ,
Original file line number Diff line number Diff line change @@ -308,6 +308,7 @@ export interface IEventNamePropertyMapping {
308
308
[ EventName . UNITTEST_DISCOVER ] : TestDiscoverytTelemetry ;
309
309
[ EventName . UNITTEST_RUN ] : TestRunTelemetry ;
310
310
[ EventName . UNITTEST_STOP ] : never | undefined ;
311
+ [ EventName . UNITTEST_DISABLE ] : never | undefined ;
311
312
[ EventName . UNITTEST_VIEW_OUTPUT ] : never | undefined ;
312
313
[ EventName . UPDATE_PYSPARK_LIBRARY ] : never | undefined ;
313
314
[ EventName . WORKSPACE_SYMBOLS_BUILD ] : never | undefined ;
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import { IConfigurationService } from '../../common/types';
8
8
import { UnitTests } from '../../common/utils/localize' ;
9
9
import { noop } from '../../common/utils/misc' ;
10
10
import { IServiceContainer } from '../../ioc/types' ;
11
+ import { captureTelemetry } from '../../telemetry' ;
12
+ import { EventName } from '../../telemetry/constants' ;
11
13
import { CANCELLATION_REASON } from '../common/constants' ;
12
14
import { ITestsHelper , Tests } from '../common/types' ;
13
15
import { ITestResultDisplay } from '../types' ;
@@ -144,6 +146,7 @@ export class TestResultDisplay implements ITestResultDisplay {
144
146
this . discoverCounter = 0 ;
145
147
}
146
148
149
+ @captureTelemetry ( EventName . UNITTEST_DISABLE )
147
150
// tslint:disable-next-line:no-any
148
151
private async disableTests ( ) : Promise < any > {
149
152
const configurationService = this . serviceContainer . get < IConfigurationService > ( IConfigurationService ) ;
You can’t perform that action at this time.
0 commit comments