Skip to content

Commit

Permalink
feat(luacov): prepare for newly released luacov html reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Dec 5, 2024
1 parent d88ea10 commit 734a21d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
* Fix: pass http-proxy variables when building `expose`
[#637](https://github.com/Kong/kong-pongo/pull/637).

* Feat: prepare for LuaCov html reporter (in LuaCov 0.16.0)
[#638](https://github.com/Kong/kong-pongo/pull/638).

---

## 2.14.0 released 24-Sep-2024
Expand Down
2 changes: 1 addition & 1 deletion assets/init/busted
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
return {
default = {
verbose = true,
coverage = false,
coverage = true,
output = "gtest",
},
}
7 changes: 7 additions & 0 deletions assets/init/luacov
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@ include = {
}

statsfile = "/kong-plugin/luacov.stats.out"

-- default reporter (text)
reportfile = "/kong-plugin/luacov.report.out"

-- html reporter
-- reportfile = "/kong-plugin/luacov.report.html"
-- reporter = "html"

runreport = true
7 changes: 7 additions & 0 deletions pongo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,13 @@ function pongo_init {
echo "luacov.report.out" >> .gitignore
msg "added 'luacov.report.out' to '.gitignore'"
fi
if grep --quiet "^luacov[.]report[.]html$" .gitignore ; then
msg "'.gitignore' already ignores 'luacov.report.html'"
else
echo "# exclude LuaCov html report" >> .gitignore
echo "luacov.report.html" >> .gitignore
msg "added 'luacov.report.html' to '.gitignore'"
fi
if grep --quiet "^[.]containerid$" .gitignore ; then
msg "'.gitignore' already ignores '.containerid'"
else
Expand Down

0 comments on commit 734a21d

Please sign in to comment.