Skip to content

Commit d1eb8e9

Browse files
authored
Changed property name used to capture the trigger source of Unit Tests
Fixes #1213
1 parent 346a166 commit d1eb8e9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

news/3 Code Health/1213.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Changed property name used to capture the trigger source of Unit Tests.

src/client/telemetry/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export type TestRunTelemetry = {
4444
tool: 'nosetest' | 'pytest' | 'unittest';
4545
scope: 'currentFile' | 'all' | 'file' | 'class' | 'function' | 'failed';
4646
debugging: boolean;
47-
trigger: 'ui' | 'codelens' | 'commandpalette' | 'auto';
47+
triggeredBy: 'ui' | 'codelens' | 'commandpalette' | 'auto';
4848
failed: boolean;
4949
};
5050
export type TestDiscoverytTelemetry = {

src/client/unittests/common/managers/baseTestManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export abstract class BaseTestManager implements ITestManager {
177177
tool: this.testProvider,
178178
scope: 'all',
179179
debugging: debug === true,
180-
trigger: cmdSource,
180+
triggeredBy: cmdSource,
181181
failed: false
182182
};
183183
if (runFailedTests === true) {

0 commit comments

Comments
 (0)