#? 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) =
Expected Actual
%expected
%gotten
#end proc #proc generateHtmlTestresultOutputNone*(outfile: File) =

No output details

#end proc #proc generateHtmlTestresultPanelEnd*(outfile: File) =
#end proc #proc generateHtmlAllTestsEnd*(outfile: File) =
#end proc #proc generateHtmlEnd*(outfile: File, timestamp: string) =