diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-14 23:03:56 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-14 23:03:56 +0500 |
| commit | 882b380fe94ef7670c7aa13aa4435351e05acbfd (patch) | |
| tree | 1709a8e386420d76c6badb2ce08938a83360c435 /src | |
| parent | shuffle files around, add the top-level symlink (diff) | |
| download | test-harness-882b380fe94ef7670c7aa13aa4435351e05acbfd.tar.gz test-harness-882b380fe94ef7670c7aa13aa4435351e05acbfd.zip | |
print a warning if no tests were foundv0.3.1
Diffstat (limited to 'src')
| -rwxr-xr-x | src/main.sh | 5 |
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 } |
