lunarmodules / luacov

LuaCov is a simple coverage analyzer for Lua code.
http://lunarmodules.github.io/luacov/
MIT License
298 stars 68 forks source link

luacov to collect coverage for .nse script #79

Closed zheli-1 closed 4 years ago

zheli-1 commented 4 years ago

Can I use luacov to collect coverage for .nse script? nse script is interpreted by an integrated Lua interpreter with nmap.

hishamhm commented 4 years ago

I'm not familiar with the nmap scripting environment, but the following things need to be supported:

If all three are true, then it should be possible to run require"luacov" and enable collecting of coverage data.

Hope this answers the question!