Update json_to_md.py
Run Pytest with Allure and Coverage Reports / tests (push) Successful in 38s

This commit is contained in:
2025-07-14 16:54:25 +02:00
parent c86abb2033
commit c2cd31e3bf
+10
View File
@@ -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()