From c2cd31e3bfebf68a24a8b758dab9adc37a7fc7f0 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Mon, 14 Jul 2025 16:54:25 +0200 Subject: [PATCH] Update json_to_md.py --- json_to_md.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/json_to_md.py b/json_to_md.py index 15f4bdd4..c2e38930 100644 --- a/json_to_md.py +++ b/json_to_md.py @@ -278,10 +278,20 @@ def main(): parser.add_argument("--input", required=True, help="Path to pytest JSON file") parser.add_argument("--output", required=True, help="Path to output Markdown file") parser.add_argument("--allure-dir", required=False, help="Directory of Allure test-cases (optional)") + parser.add_argument("--log", required=False, help="Path to raw pytest output log (optional)") # ✅ ligne ajoutée + args = parser.parse_args() json_to_md_nested(args.input, args.output, args.allure_dir) + + if args.log: + check_keyboard_interrupt_and_prepend_warning( + log_path=args.log, + md_path=args.output + ) + print(f"✅ Report generated at {args.output}") + if __name__ == "__main__": main()