#? stdtmpl(subsChar = '%', metaChar = '#', emit = "outfile.write") #import strutils # #proc htmlQuote*(raw: string): string = # result = raw.multiReplace( # ("&", "&"), # ("\"", """), # ("'", "'"), # ("<", "<"), # (">", ">") # ) # #end proc #proc generateHtmlBegin*(outfile: File) = Testament Test Results

Testament Test Results Nim Tester

#end proc #proc generateHtmlAllTestsBegin*(outfile: File, machine, commit, branch: string, # totalCount: BiggestInt, # successCount: BiggestInt, successPercentage: string, # ignoredCount: BiggestInt, ignoredPercentage: string, # failedCount: BiggestInt, failedPercentage: string, onlyFailing = false) =
Hostname
%machine
Git Commit
%commit
Branch ref.
%branch
All Tests
%totalCount
Successful Tests
%successCount (%successPercentage)
Skipped Tests
%ignoredCount (%ignoredPercentage)
Failed Tests
%failedCount (%failedPercentage)
# if not onlyFailing: # end if
All Tests
Successful Tests
Skipped Tests
Failed Tests
#end proc #proc generateHtmlTestresultPanelBegin*(outfile: File, trId, name, target, category, # action, resultDescription, timestamp, result, resultSign, # panelCtxClass, textCtxClass, bgCtxClass: string) =
Name
%name
Category
%category
Timestamp
%timestamp
Nim Action
%action
Nim Backend Target
%target
Code
%result
#end proc #proc generateHtmlTestresultOutputDetails*(outfile: File, expected, gotten: string) =
0; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: