TestReport
This is a python script, which creates an html test report out of a csv file.
Usage
Execute the program like this:
.\create_report.py [-h] [-o output] [-c] input_path
The input_path points either to a executable, which outputs the csv to stdout, or to a csv (if the -c flag is set).
The program does not test for invalid inputs, the behaviour for these is undefined.
CSV-Format
The format of the csv-input (header-row, types and example values):
| log_type | timestamp | category | number | test_description | log_description |
|---|---|---|---|---|---|
str |
str |
str |
int |
str |
str |
| SUCCESS | 10 ms | category_1 | 1 | description_1 | description_1_1 |
log_type (string)
We differentiate between: "SUCCESS", "FAIL" and everything else (which will be dealt with as an info log).
log_description (string)
The description for the specific log, which belongs to the testcase. The log description will not be printed, if the log type is a success.
Example
| Input | Output |
|---|---|
|
 |