diff --git a/CHANGELOG.md b/CHANGELOG.md index 32c6585b..97bac07a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,8 @@ ### Fix - handle dom parser exception for invalid xml (#821) - do not log stack on assertions error (AnWeber/vscode-httpyac#338) - +- only clear output channel for test runs (AnWeber/vscode-httpyac#337) +- add skipped test result on user cancellation (AnWeber/vscode-httpyac#323) ## [6.16.3] (2024-10-30) diff --git a/src/utils/requestClientUtils.ts b/src/utils/requestClientUtils.ts index 29cd1140..ccb6de52 100644 --- a/src/utils/requestClientUtils.ts +++ b/src/utils/requestClientUtils.ts @@ -8,6 +8,7 @@ import { mergeResponses, repeat } from './repeatUtils'; import { toString } from './stringUtils'; import { deleteVariableInContext, setVariableInContext } from './variableUtils'; import { v4 } from 'uuid'; +import { addSkippedTestResult } from './testUtils'; export function executeRequestClientFactory( requestClientFactory: (request: models.Request, context: models.ProcessorContext) => T, @@ -106,6 +107,7 @@ function toResponses(...responses: Array function registerCancellation(client: T, context: models.ProcessorContext) { if (context.progress?.register) { return context.progress?.register(() => { + addSkippedTestResult(context.httpRegion, 'user cancellation'); client.disconnect(new Error('user cancellation')); }); }