lunarmodules / luacov

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

Command line and configuration option to select reporter. #9

Closed moteus closed 10 years ago

moteus commented 10 years ago

I just implement my own command line util luacov-coveralls. Basically it is copy-paste luacov utils with additional flags. You can see usage luacov+gcov in my test repo lua-travis-example. But I still think that this pull request may be useful.

And because there no issues in this repo could you pleas look at lua-pop3. On Windows luacov works Ok. But on travis it marks empty line as misses. I think the problem with EOL.

hishamhm commented 10 years ago

I enabled the Issues feature in the repo!

On Windows luacov works Ok. But on travis it marks empty line as misses. I think the problem with EOL.

Might be. Perhaps "*l" removes \r on Windows but not on Linux?

I'm going to give you commit access, so you can tweaks on these things to your liking!

moteus commented 10 years ago

I think more about "%s*" pattern instead of " *". This should also fix error with tabs as intention. E.g. lua-vararg