Enabled logging tests for js
This commit is contained in:
parent
c43a7f3980
commit
a994f142b5
2 changed files with 7 additions and 6 deletions
|
|
@ -336,10 +336,11 @@ proc getLogFilter*(): Level =
|
||||||
|
|
||||||
when not defined(testing) and isMainModule:
|
when not defined(testing) and isMainModule:
|
||||||
var L = newConsoleLogger()
|
var L = newConsoleLogger()
|
||||||
var fL = newFileLogger("test.log", fmtStr = verboseFmtStr)
|
when not defined(js):
|
||||||
var rL = newRollingFileLogger("rolling.log", fmtStr = verboseFmtStr)
|
var fL = newFileLogger("test.log", fmtStr = verboseFmtStr)
|
||||||
|
var rL = newRollingFileLogger("rolling.log", fmtStr = verboseFmtStr)
|
||||||
|
addHandler(fL)
|
||||||
|
addHandler(rL)
|
||||||
addHandler(L)
|
addHandler(L)
|
||||||
addHandler(fL)
|
|
||||||
addHandler(rL)
|
|
||||||
for i in 0 .. 25:
|
for i in 0 .. 25:
|
||||||
info("hello", i)
|
info("hello", i)
|
||||||
|
|
|
||||||
|
|
@ -228,8 +228,8 @@ proc jsTests(r: var TResults, cat: Category, options: string) =
|
||||||
"varres/tvartup", "misc/tints", "misc/tunsignedinc"]:
|
"varres/tvartup", "misc/tints", "misc/tunsignedinc"]:
|
||||||
test "tests/" & testfile & ".nim"
|
test "tests/" & testfile & ".nim"
|
||||||
|
|
||||||
for testfile in ["pure/strutils", "pure/json", "pure/random", "pure/times"]:
|
for testfile in ["strutils", "json", "random", "times", "logging"]:
|
||||||
test "lib/" & testfile & ".nim"
|
test "lib/pure/" & testfile & ".nim"
|
||||||
|
|
||||||
# ------------------------- manyloc -------------------------------------------
|
# ------------------------- manyloc -------------------------------------------
|
||||||
#proc runSpecialTests(r: var TResults, options: string) =
|
#proc runSpecialTests(r: var TResults, options: string) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue