Skip to content

Commit

Permalink
Changed property name used to capture the trigger source of Unit Tests
Browse files Browse the repository at this point in the history
Fixes #1213
  • Loading branch information
DonJayamanne authored Mar 27, 2018
1 parent 346a166 commit d1eb8e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/3 Code Health/1213.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changed property name used to capture the trigger source of Unit Tests.
2 changes: 1 addition & 1 deletion src/client/telemetry/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type TestRunTelemetry = {
tool: 'nosetest' | 'pytest' | 'unittest';
scope: 'currentFile' | 'all' | 'file' | 'class' | 'function' | 'failed';
debugging: boolean;
trigger: 'ui' | 'codelens' | 'commandpalette' | 'auto';
triggeredBy: 'ui' | 'codelens' | 'commandpalette' | 'auto';
failed: boolean;
};
export type TestDiscoverytTelemetry = {
Expand Down
2 changes: 1 addition & 1 deletion src/client/unittests/common/managers/baseTestManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export abstract class BaseTestManager implements ITestManager {
tool: this.testProvider,
scope: 'all',
debugging: debug === true,
trigger: cmdSource,
triggeredBy: cmdSource,
failed: false
};
if (runFailedTests === true) {
Expand Down

0 comments on commit d1eb8e9

Please sign in to comment.