Skip to content

Commit 0434750

Browse files
committed
Raise error if no tests found
1 parent 5f54a6c commit 0434750

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mlip_testing/app/build_app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ def build_full_app(full_app: Dash) -> None:
248248
"""
249249
# Get layouts and tables for each test, grouped by categories
250250
all_layouts, all_tables = get_all_tests()
251+
252+
if not all_layouts:
253+
raise ValueError("No tests were built successfully")
254+
251255
# Combine tests into categories and create category summary
252256
category_layouts, category_tables = build_category(all_layouts, all_tables)
253257
# Build overall summary table

0 commit comments

Comments
 (0)