Skip to content

Commit 84d86b3

Browse files
author
John Freeman
committed
Merge remote-tracking branch 'origin/johnfreeman/improved_unit_test_output' into develop
2 parents eec6571 + d68ecdd commit 84d86b3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bin/dbt-build

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,10 +641,14 @@ for test in sorted(integtest_overviews, key=lambda d: (d["package"], d["test"]))
641641

642642
if len(unittest_overviews) > 0:
643643
rich.print("\n\n")
644-
rich.print(f"[yellow]################################SUMMARY OF UNIT TESTS###################################[/yellow]")
644+
rich.print(f"[yellow]###########################SUMMARY OF UNIT TESTS##############################[/yellow]")
645+
for i_t, (path, retval) in enumerate(unittest_overviews):
646+
res = re.search(r"(.*/build).*/([^/]+/[^/]+/[^/]+)", path)
647+
assert res, "Problem in dbt-build with broken assumption about path to unit test; please contact John Freeman"
648+
if i_t == 0:
649+
print(f"From {res.group(1)}:\n")
650+
print(f"{res.group(2):.<80}", end = "")
645651

646-
for (path, retval) in unittest_overviews:
647-
print(f"{path:.<120}", end = "")
648652
if retval == 0:
649653
rich.print('[green]SUCCESS[/green]')
650654
else:

0 commit comments

Comments
 (0)