aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-14 23:03:56 +0500
committerEgor Tensin <egor@tensin.name>2026-10-14 23:03:56 +0500
commit882b380fe94ef7670c7aa13aa4435351e05acbfd (patch)
tree1709a8e386420d76c6badb2ce08938a83360c435
parentshuffle files around, add the top-level symlink (diff)
downloadtest-harness-882b380fe94ef7670c7aa13aa4435351e05acbfd.tar.gz
test-harness-882b380fe94ef7670c7aa13aa4435351e05acbfd.zip
print a warning if no tests were foundv0.3.1
-rwxr-xr-xsrc/main.sh5
1 files changed, 5 insertions, 0 deletions
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
}