Skip to content

Commit

Permalink
Fix rendering of test output
Browse files Browse the repository at this point in the history
  • Loading branch information
kwk committed Apr 5, 2024
1 parent b7113e7 commit 50bd198
Show file tree
Hide file tree
Showing 2 changed files with 626 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snapshot_manager/snapshot_manager/build_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,11 @@ def handle_golden_file(cause: ErrorCause, ctx: str) -> tuple[ErrorCause, str]:
test_name = lines[0].replace("********************", "").strip()
test_details += f"""
<details><summary>{test_name}</summary>
``````
{util.shorten_text(failing_test)}
``````
</details>
"""
ctx = f"<details open><summary><h3>Failing tests</h3></summary>{test_details}</details>"
Expand Down
Loading

0 comments on commit 50bd198

Please sign in to comment.