diff options
-rw-r--r-- | tests/config/test.cfg | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/config/test.cfg b/tests/config/test.cfg index f961ee4d..9efcaf9c 100644 --- a/tests/config/test.cfg +++ b/tests/config/test.cfg @@ -32,11 +32,14 @@ assert(type(tests) == 'table', local runtest = require('test_utils').test worker.coroutine(function () + local at_least_one_test = false for idx, t in ipairs(tests) do assert(type(t) == 'function', string.format('test table idx %d in file %s' .. 'is not a function', idx, env.TEST_FILE)) + at_least_one_test = true runtest(t) end + assert(at_least_one_test, 'test set is empty?! a typo in function name?') done() end) |