kennytm / cargo-kcov

Cargo subcommand to run kcov to get coverage report on Linux
127 stars 19 forks source link

[question/feature request] Expand macros in coverage reports #11

Closed chpio closed 5 years ago

chpio commented 7 years ago

Hi,

my code consists pretty much of macros which makes the reports pointless. Is there an option (i looked at the help page & couldn't find anything) or some thing to enable macro expansions in the reports?

kennytm commented 7 years ago

kcov gets line information from the DWARF symbol, which only contains the line information where the macro is invoked. See https://github.com/rust-lang/rust/issues/39153.

Maybe you could try build with the environment variable RUSTFLAGS=-Zdebug-macros, as mentioned in that comment, to see if the result is better?