diff options
| author | Christian Krinitsin <christian.krinitsin@iqmine.de> | 2025-04-09 12:55:59 +0200 |
|---|---|---|
| committer | Christian Krinitsin <christian.krinitsin@iqmine.de> | 2025-04-09 12:55:59 +0200 |
| commit | 8c9cd958f0c4bb34bf46486b3defbcad67e0b4d4 (patch) | |
| tree | fbdd452ddbf8a78e32940dce675982c9a462b5a3 /README.md | |
| parent | 0f6c76556b535975979b94723de49b1378880b1d (diff) | |
| parent | 9c45abe73b6a507cd1305df28920bd56be4e82a3 (diff) | |
| download | testreport-8c9cd958f0c4bb34bf46486b3defbcad67e0b4d4.tar.gz testreport-8c9cd958f0c4bb34bf46486b3defbcad67e0b4d4.zip | |
Merge branch 'master' of ssh://gitlab.iqmine.com/christian.krinitsin/testreport
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/README.md b/README.md index faad3f7..3ea61a7 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ This is a python script, which creates an html test report out of a csv file. Execute the program like this: ``` -.\create_report.py [-h] [-o output] exe_path +usage: .\create_report.py [-h] [-o output] [-c] input_path ``` -The exe_path points to an executable, which outputs the data in the following csv file format in stdout. - -# CSV-Format +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): @@ -23,8 +23,35 @@ The format of the csv-input (header-row, types and example values): ## log_type (string) -We differentiate between: "SUCCESS", "FAIL" and everything else (which well be dealt with as an info log). +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. \ No newline at end of file +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 + +<table> +<tr> +<th> Input </th> +<th> Output </th> +</tr> +<tr> +<td> + +``` +log_type,timestamp,category,number,test_description,fail_description +SUCCESS,"100 ms","category_1",1,"description_1","" +FAIL,"110 ms","category_2",1,"description_2","description_2_1" +INFO,"115 ms","category_2",2,"description_3","description_2_2" +SUCCESS,"120 ms","category_2",2,"description_4","description_2_3" +``` + +</td> +<td> + + + +</td> +</tr> +</table> \ No newline at end of file |