Reporting Templates
All coverage reports are generated using templates, as ctcreport provides coverage information, strictly separated from its representation. There are two types of templates available: structured templates and single-file templates.
The core HTML report of Testwell CTC++ ist generated by a structured template, providing an HTML structure together with CSS and JavaScript functions for sorting and expanding. It works with every Layout Configuration.
With installation, four templates are provided in ctcreport folder:
- html_template.zip: The default template - a ZIP archive like all structured templates.
- example_csv.csv: A single-file template to generate a CSV format.
- example_xml.xml: A single-file template to generate an XML format.
- example_markdown.md: A single-file template to generate Markdown reports.
Additional templates in the same folder, for example
my_template.zip, are chosen with option -template
my_template
for report generation, without file extension. You get an
overview over all available templates in your ctcreport folder with
ctcreport -h
.
Templates can also be placed anywhere and referred to with their path and full file name with file extension.