Skip to content

Commit 7151fd5

Browse files
committed
Show descriptive error when there are no tests in local modules
1 parent 6a7e198 commit 7151fd5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Modules/UnitTest.Discover.pq

+6-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@ let
2828
),
2929
each [SuiteVersion] <> null
3030
),
31+
SuitesValid =
32+
if Table.IsEmpty(SuitesFilter)
33+
then error Error.Record("LibPQ.TestsNotFound", "No tests were found among local modules", null)
34+
else SuitesFilter,
3135
Suites = Table.RenameColumns(
32-
SuitesFilter,
36+
SuitesValid,
3337
List.Zip({
34-
Table.ColumnNames(SuitesFilter),
38+
Table.ColumnNames(SuitesValid),
3539
{"Suite", "Object", "Version"}
3640
})
3741
),

0 commit comments

Comments
 (0)