Pongo is not generating coverage

I am writing kong custom plugins test cases and running the with pongo -coverage option.
I have already installed luacov and test cases are passing but no files are generated for coverage.

1 Like

Hi deepak,

Did you received any feedback about this or found some way to make pongo get coverage data? i tried to configure / integrate it with luacov but failed miserably lol

i saw some “documentation” about this but the few samples i found always used busted directly, none of them were using pongo -coverage option

i tried adding luacov as a dependencie in my rockspec file, and tried both pongo run -coverage and also setted coverage = true option in my .busted file, with no success at all

I am trying an approach suggested here: How to generate and display coverage when running tests with Pongo for custom Kong API Gateway plugins written in Lua - Stack Overflow

Just in case you want to try that too… i will let you know if this works for me


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ