From 882b380fe94ef7670c7aa13aa4435351e05acbfd Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 14 Oct 2026 23:03:56 +0500 Subject: print a warning if no tests were found --- src/main.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.sh b/src/main.sh index ff5aeac..cb0e334 100755 --- a/src/main.sh +++ b/src/main.sh @@ -136,6 +136,11 @@ _test_main() { test_files+=("$test_file") done + if [ "${#test_files[@]}" -eq 0 ]; then + echo "No tests found in $tests_dir" + return 0 + fi + _test_run_file ${test_files[@]+"${test_files[@]}"} _log_tests_summary } -- cgit v1.3