add constructor param for continuous status update in terminal

# Conflicts:
#	tests/testIntegration.nim
This commit is contained in:
Eric 2025-01-20 12:54:57 +11:00
parent b58d4c6aef
commit 44537f8285
No known key found for this signature in database
2 changed files with 11 additions and 1 deletions

View File

@ -34,6 +34,9 @@ type
# can also be output if a test uses a multinodesuite, requires
# CodexConfig.debug to be enabled
debugCodexNodes: bool
# Shows test status updates at regular time intervals. Useful for running
# locally while attended. Set to false for unattended runs, eg CI.
showContinuousStatusUpdates: bool
timeStart: ?Moment
timeEnd: ?Moment
codexPortLock: AsyncLock
@ -99,6 +102,7 @@ proc new*(
debugTestHarness = false,
debugHardhat = false,
debugCodexNodes = false,
showContinuousStatusUpdates = false,
testTimeout = 60.minutes): TestManager =
TestManager(

View File

@ -44,6 +44,11 @@ proc run() {.async.} =
# also be output if a test uses a multinodesuite, requires CodexConfig.debug
# to be enabled
const debugCodexNodes = true
# Shows test status updates at time intervals. Useful for running locally with
# active terminal interaction. Set to false for unattended runs, eg CI.
const showContinuousStatusUpdates = true
# Timeout duration for EACH integration test file.
const testTimeout = 60.minutes
when debugTestHarness and enabledLogLevel != LogLevel.TRACE:
styledEcho bgWhite,
@ -70,7 +75,8 @@ More integration test harness logs available by running with
debugTestHarness,
debugHardhat,
debugCodexNodes,
testTimeout = 60.minutes,
showContinuousStatusUpdates,
testTimeout,
)
try:
trace "starting test manager"