Closed tapika closed 4 years ago
You can add mode.coverage
rule to enable coverage for different compiler. It support gcc/clang now. You can improve the following code to support more compilers.
add_rules("mode.coverage")
target("test")
-- ...
xmake f -m coverage
xmake
How about microsoft compiler ?
Currently not supported, if you are interested, you can try to improve the following code.
May be not related to subject - but is it possible to debug xmake lua scripts using Visual studio or Visual studio code ?
May be not related to subject - but is it possible to debug xmake lua scripts using Visual studio or Visual studio code ?
I don't know, you can install a vscode/lua plugin to try it, usually I call print directly to debug
Is your feature request related to a problem? Please describe.
To have proper unit testing best approach is to use code coverage, which is apparently different for different compiler. It would be perfect if code coverage would work out of box in compiler independent manner.
See related information on reddit: https://developercommunity.visualstudio.com/content/problem/669232/linux-projects-incremental-build-does-not-recogniz.html
it would be good if code coverage tool would be able to work with report generator: https://github.com/danielpalme/ReportGenerator
As it's more or less compiler independent.