This commit is contained in:
+7
-4
@@ -6,6 +6,7 @@ import os
|
||||
import re
|
||||
import pytest
|
||||
from pytest import ExitCode
|
||||
import traceback
|
||||
|
||||
def stringify(obj):
|
||||
if obj is None or obj == "":
|
||||
@@ -64,10 +65,12 @@ def load_allure_metadata(allure_test_cases_dir):
|
||||
"severity": severity
|
||||
}
|
||||
print(f"Allure file: {file} loaded ✔️")
|
||||
#except Exception as e:
|
||||
# Juste le type d'exception, pas le détail
|
||||
#print(f"Allure file: {file} failed ❌ (reason: {type(e).__name__})")
|
||||
return allure_data
|
||||
|
||||
|
||||
except Exception as e:
|
||||
short_summary = traceback.format_exception_only(type(e), e)[-1].strip()
|
||||
print(f"Allure file: {file} failed ❌ (reason: {short_summary})")
|
||||
return allure_data
|
||||
|
||||
|
||||
def json_to_md_nested(json_path, md_path, allure_dir=None):
|
||||
|
||||
Reference in New Issue
Block a user