#
#
# Nim Tester
# (c) Copyright 2017 Andreas Rumpf
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.
#
## HTML generator for the tester.
import cgi, backend, strutils, json, os, tables, times
import "testamenthtml.templ"
proc generateTestResultPanelPartial(outfile: File, testResultRow: JsonNode) =
let
trId = htmlQuote(testResultRow["category"].str & "_" & testResultRow["name"].str).
multiReplace({".": "_", " ": "_", ":": "_"})
name = testResultRow["name"].str.htmlQuote()
category = testResultRow["category"].str.htmlQuote()
target = testResultRow["target"].str.htmlQuote()
action = testResultRow["action"].str.htmlQuote()
result = htmlQuote testResultRow["result"].str
expected = testResultRow["expected"].getStr
gotten = testResultRow["given&q