From 96efba59034974c87dd7162a484634c44c18a5ff Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 24 May 2025 14:33:24 +0000 Subject: [PATCH] fix(tstest): Fix timeout handling to correctly evaluate TAP results after killing the test process. --- changelog.md | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts/tstest.classes.tstest.ts | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index fbf93c8..be3907d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2025-05-24 - 1.11.5 - fix(tstest) +Fix timeout handling to correctly evaluate TAP results after killing the test process. + +- Added call to evaluateFinalResult() after killing the process in runInNode to ensure final TAP output is processed. + ## 2025-05-24 - 1.11.4 - fix(logging) Improve warning logging and add permission settings file diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 98c32dc..3b72991 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tstest', - version: '1.11.4', + version: '1.11.5', description: 'a test utility to run tests that match test/**/*.ts' } diff --git a/ts/tstest.classes.tstest.ts b/ts/tstest.classes.tstest.ts index b2ddf39..5568138 100644 --- a/ts/tstest.classes.tstest.ts +++ b/ts/tstest.classes.tstest.ts @@ -194,6 +194,7 @@ export class TsTest { } catch (killError) { // Process tree might already be dead } + await tapParser.evaluateFinalResult(); } } else { await tapParser.handleTapProcess(execResultStreaming.childProcess);