Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(luacov): prepare for newly released luacov html reporter #638

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading