mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-10 17:33:09 +00:00
add constructor param for continuous status update in terminal
# Conflicts: # tests/testIntegration.nim
This commit is contained in:
parent
749f65b134
commit
7f058deece
@ -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(
|
||||
|
||||
@ -40,6 +40,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,
|
||||
@ -66,7 +71,8 @@ More integration test harness logs available by running with
|
||||
debugTestHarness,
|
||||
debugHardhat,
|
||||
debugCodexNodes,
|
||||
testTimeout = 60.minutes,
|
||||
showContinuousStatusUpdates,
|
||||
testTimeout,
|
||||
)
|
||||
try:
|
||||
trace "starting test manager"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user