From 089529c16aa45926eb64395e27b8e56b46f4aa92 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Sat, 11 Aug 2018 05:03:42 +0200 Subject: [PATCH] Preliminary check for test category folder existence (#8579) Warn the user if nothing is executed. --- tests/testament/categories.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim index f7cd0815cf..95521449af 100644 --- a/tests/testament/categories.nim +++ b/tests/testament/categories.nim @@ -523,5 +523,9 @@ proc processCategory(r: var TResults, cat: Category, options: string) = # We can't test it because it depends on a third party. discard # TODO: Move untestable tests to someplace else, i.e. nimble repo. else: + var testsRun = 0 for name in os.walkFiles("tests" & DirSep &.? cat.string / "t*.nim"): testSpec r, makeTest(name, options, cat) + inc testsRun + if testsRun == 0: + echo "[Warning] - Invalid category specified \"", cat.string, "\", no tests were run"