Enabled logging tests for js

This commit is contained in:
Yuriy Glukhov
2016-09-03 22:46:10 +03:00
parent c43a7f3980
commit a994f142b5
2 changed files with 7 additions and 6 deletions

View File

@@ -336,10 +336,11 @@ proc getLogFilter*(): Level =
when not defined(testing) and isMainModule:
var L = newConsoleLogger()
var fL = newFileLogger("test.log", fmtStr = verboseFmtStr)
var rL = newRollingFileLogger("rolling.log", fmtStr = verboseFmtStr)
when not defined(js):
var fL = newFileLogger("test.log", fmtStr = verboseFmtStr)
var rL = newRollingFileLogger("rolling.log", fmtStr = verboseFmtStr)
addHandler(fL)
addHandler(rL)
addHandler(L)
addHandler(fL)
addHandler(rL)
for i in 0 .. 25:
info("hello", i)

View File

@@ -228,8 +228,8 @@ proc jsTests(r: var TResults, cat: Category, options: string) =
"varres/tvartup", "misc/tints", "misc/tunsignedinc"]:
test "tests/" & testfile & ".nim"
for testfile in ["pure/strutils", "pure/json", "pure/random", "pure/times"]:
test "lib/" & testfile & ".nim"
for testfile in ["strutils", "json", "random", "times", "logging"]:
test "lib/pure/" & testfile & ".nim"
# ------------------------- manyloc -------------------------------------------
#proc runSpecialTests(r: var TResults, options: string) =