This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user