about summary refs log tree commit diff stats
path: root/create_report.py
diff options
context:
space:
mode:
authorChristian Krinitsin <christian.krinitsin@iqmine.de>2025-04-08 15:31:14 +0200
committerChristian Krinitsin <christian.krinitsin@iqmine.de>2025-04-08 15:31:14 +0200
commit07741cdf203e3a7e339ef0b65c43107ac83877f0 (patch)
tree85d888ea1eb17daaa053308844344ac3a5ede10a /create_report.py
parentab279cd88d6367f3572dd244d50b04dcebfff099 (diff)
downloadtestreport-07741cdf203e3a7e339ef0b65c43107ac83877f0.tar.gz
testreport-07741cdf203e3a7e339ef0b65c43107ac83877f0.zip
add a cli to give the path of the executable and pipe the results to csv-parser
Diffstat (limited to 'create_report.py')
-rw-r--r--create_report.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/create_report.py b/create_report.py
index 107f62c..c70b094 100644
--- a/create_report.py
+++ b/create_report.py
@@ -1,6 +1,12 @@
-from parse_data import data, stats
-
+from parse_data import parse_data
 from jinja2 import Environment, FileSystemLoader
+import argparse
+
+parser = argparse.ArgumentParser(prog='test_report_manager')
+parser.add_argument('executable', help="executable to parse")
+args = parser.parse_args()
+
+data, stats = parse_data(args.executable)
 
 # Load the template from the current directory
 env = Environment(loader=FileSystemLoader('.'))