fix(tstest): Fix timeout handling to correctly evaluate TAP results after killing the test process.

This commit is contained in:
Philipp Kunz 2025-05-24 14:33:24 +00:00
parent 3c535a8a77
commit 96efba5903
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# Changelog # 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) ## 2025-05-24 - 1.11.4 - fix(logging)
Improve warning logging and add permission settings file Improve warning logging and add permission settings file

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/tstest', name: '@git.zone/tstest',
version: '1.11.4', version: '1.11.5',
description: 'a test utility to run tests that match test/**/*.ts' description: 'a test utility to run tests that match test/**/*.ts'
} }

View File

@ -194,6 +194,7 @@ export class TsTest {
} catch (killError) { } catch (killError) {
// Process tree might already be dead // Process tree might already be dead
} }
await tapParser.evaluateFinalResult();
} }
} else { } else {
await tapParser.handleTapProcess(execResultStreaming.childProcess); await tapParser.handleTapProcess(execResultStreaming.childProcess);