diff --git a/.gitignore b/.gitignore index 7f1509c..5956968 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ luacov-html +.luacov-html _site/ .luarocks/ diff --git a/tests.sh b/tests.sh index caa5202..fd84caa 100755 --- a/tests.sh +++ b/tests.sh @@ -90,6 +90,11 @@ run_test() { fi "${busted_path}" --coverage --no-auto-insulate --pattern ".test.lua" .tests; + # If it doesn't begin with a dot, then Minetest *will* complain + if [[ -d "luacov-html" ]]; then + mv "luacov-html" ".luacov-html"; + fi + # Remove, but only if empty if [[ -s "luacov.report.out" ]]; then : else rm "luacov.report.out"; fi