StrawBossConfig object (de)serialization and tests.

This commit is contained in:
Jonathan Bernard
2017-05-08 12:33:47 -05:00
parent 13165879c5
commit 411379cb8d
2 changed files with 20 additions and 9 deletions

View File

@ -107,9 +107,10 @@ suite "load and save configuration objects":
sameContents(pc.steps["test"].expectedEnv, @[])
sameContents(pc.steps["test"].cmdInput, @[])
test "StrawBossConfig to string":
# TODO
check false
test "serialze StrawBossConfig to/from string":
let cfg = loadStrawBossConfig("src/test/json/strawboss.config.json")
let cfgStr = $cfg
check cfg == parseStrawBossConfig(parseJson(cfgStr))
test "loadBuildStatus":
let st = loadBuildStatus("src/test/json/test-status.json")