Erlang: configuring cover via rebar

Posted by exterm on Stack Overflow See other posts from Stack Overflow or by exterm
Published on 2012-11-28T18:35:57Z Indexed on 2012/12/17 23:03 UTC
Read the original article Hit count: 174

Filed under:
|

My project is using a websocket server. Only for testing purposes, I also have an erlang websocket client implementation which resides in the test/ folder along with the tests.

Now, when I run the tests via rebar with {cover_enabled, true} in my rebar.config, I also get coverage reported for the modules of the websocket client. I don't want this in my reports.

Cover documentation says I should create a cover specification file containing {excl_mods, [websocket_client]}.

But how do I convince rebar to use this file?

Cover documentation:

rebar:

© Stack Overflow or respective owner

Related posts about erlang

Related posts about rebar