mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
tests.sh: fix coverage html generation
This commit is contained in:
parent
7e6e61a00b
commit
7f9b51c7e0
1 changed files with 4 additions and 3 deletions
7
tests.sh
7
tests.sh
|
@ -101,12 +101,13 @@ run_test() {
|
|||
else
|
||||
if [[ -r "luacov.stats.out" ]]; then rm "luacov.stats.out"; fi
|
||||
|
||||
# Delete any pre-existing coverage info from any prev runs
|
||||
if [[ -d "luacov-html" ]]; then rm -r "luacov-html"; fi
|
||||
|
||||
set +e;
|
||||
"${busted_path}" --coverage --no-auto-insulate --pattern ".test.lua" .tests;
|
||||
set -e;
|
||||
|
||||
# Delete any pre-existing coverage info from any prev runs
|
||||
if [[ -d "luacov-html" ]]; then rm -r "luacov-html"; fi
|
||||
|
||||
# If it doesn't begin with a dot, then Minetest *will* complain
|
||||
if [[ -d "luacov-html" ]]; then
|
||||
|
@ -117,7 +118,7 @@ run_test() {
|
|||
if [[ -s "luacov.report.out" ]]; then :
|
||||
elif [[ -e "luacov.report.out" ]]; then rm "luacov.report.out"; fi
|
||||
|
||||
echo -e "Output written to $(display_url "file://$PWD/luacov-html/index.html" "./luacov-html/index.html")";
|
||||
echo -e "Output written to $(display_url "file://$PWD/.luacov-html/index.html" "./.luacov-html/index.html")";
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue