Options of ctcreport
The following command-line options are available for ctcreport.
- -h
- Shows a short command-line help
- symbol and data files
- Any number of symbol and data files (*.sym and *.dat). To denote both a symbol and a data file, use the file name without extension. If completely omitted, MON.sym and MON.dat are used.
- -measures x,y,...
- Any combination of mcdc, m, c, d, s, f in a comma-separated list without spaces. Chooses the coverage measures and their order.
- -html layout
- Specifies the layout from ctcreport-layout.ini. When
-html
is omitted, the first layout is used. - -D ProjectName=MyProjectName
- Specifies the user's project name shown in the report.
- -o output-dir
- Specifies the name of the output directory. Default is CTC-HTML-REPORT.
- -t threshold
- Specifies the coverage threshold as an integer (0...100). In the report, it is visible for each entity and each measure if the coverage ratio reaches the threshold (in percent). Default is 100.
- -template name
- Uses name.zip as the HTML template instead of the default, html_template.zip. All templates must be located in folder ctcreport in the Testwell CTC++ directory.
- -map-source-identification anchor,search-path
- Maps one or more source file identifications recorded by ctc during instrumentation to a directory structure containing the source files when calling ctcreport.
- -shorten-path match[,replace]
- Shortens long paths to source files for display. The path fragment defined in match is cutted from the left and, optionally, replaced with a fragment defined in replace.
- -restrict-to-files list
- Restricts the report to the source files on the list. Entries in the list are separated with commas. "*" can be used as wildcard. Directly instrumented files and included files are treated the same.
- -exclude-files list
- Excludes the source files from the report. Directly instrumented files and included files are treated the same.
- -nsb
- Does not start the browser.
- @option-file
- All options can be handed over with an option file.