Update json_to_tree.py
Run Pytest with HTML and XML Test Reports / tests (push) Successful in 24s

This commit is contained in:
2025-07-16 13:42:08 +02:00
parent f4d07eb58a
commit ada55c28f8
+7 -2
View File
@@ -1,3 +1,4 @@
from io import StringIO
from rich.console import Console
from rich.tree import Tree
import json
@@ -27,12 +28,16 @@ def main():
os.makedirs("ci-reports/markdown", exist_ok=True)
console = Console(record=True, force_terminal=True, color_system="truecolor")
buffer = StringIO()
console = Console(file=buffer, record=True, force_terminal=True, color_system="truecolor")
root = Tree(f"📁 {file_path}")
build_tree(data, root)
console.print(root)
with open("ci-reports/markdown/json-tree-view.txt", "w") as f:
f.write(console.export_text(clear=False))
if __name__ == "__main__":
main()
main()