diff options
-rw-r--r-- | lib/pure/unittest.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pure/unittest.nim b/lib/pure/unittest.nim index 3f84c1853..469e75c16 100644 --- a/lib/pure/unittest.nim +++ b/lib/pure/unittest.nim @@ -89,7 +89,7 @@ ## echo "suite teardown: run once after the tests" import - macros, strutils, streams, times, sets + macros, strutils, streams, times, sets, sequtils when declared(stdout): import os @@ -176,6 +176,10 @@ method suiteEnded*(formatter: OutputFormatter) {.base, gcsafe.} = proc addOutputFormatter*(formatter: OutputFormatter) = formatters.add(formatter) +proc delOutputFormatter*(formatter: OutputFormatter) = + keepIf(formatters, proc (x: OutputFormatter) : bool = + x != formatter) + proc newConsoleOutputFormatter*(outputLevel: OutputLevel = PRINT_ALL, colorOutput = true): <//>ConsoleOutputFormatter = ConsoleOutputFormatter( |