[erlang-questions] How to get proper code coverage with rebar/eunit for yecc/leex files

Florian Waas <>
Tue Apr 30 18:35:42 CEST 2013


Rebar's reporting of coverage during eunit runs computes coverage numbers
for the generated lexer/parser code not the original xrl/yrl files.
The generated files
contain a ton of boiler plate code from leexinc.hrl and yeccpre.hrl
which is not exercised.
As a result, the coverage number is rather meaningless.

Anybody have ideas for workarounds? Elegant ways to exclude these
files from the report?


Thanks,
-fl.



More information about the erlang-questions mailing list