covertool / covertool

Tool to convert Erlang cover data files into Cobertura XML reports
Other
76 stars 56 forks source link

Rebar3 support #26

Closed vladdu closed 6 years ago

vladdu commented 8 years ago

I suppose it would have to be a separate project, but is rebar3 support planned?

fp commented 8 years ago

PR #27 is available for merging to fix the basic compilation issue, but not to make this a rebar3 plugin.

aeyakovenko commented 8 years ago

I see that PR #27 has merged, any idea how to use this in rebar3? i added this to my rebar.config

{plugins, [rebar_covertool]}.
{cover_export_enabled, true}.
{covertool_eunit, {"eunit.coverdata", "eunit.coverage.xml"}}. % Source file name, output report file name
{covertool_ct, {"ct.coverdata", "ct.coverage.xml"}}. % Source file name, output report file name
{covertool_prefix_len, 2}. % Optional: Use module prefix as (imaginary) package name

should i expect rebar3 covertool to work? This is my output:

 ./rebar3 covertool
===> Package <<"rebar_covertool">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Writing registry to /root/.cache/rebar3/hex/default/registry
===> Generating package index...
===> [cloudi_service_oauth1:1.5.1] Only existing version of cloudi_service_db_riak is 1.3.3 which does not match constraint ~> 1.5.1. Using anyway, but it is not guaranteed to work.
===> Writing index to /root/.cache/rebar3/hex/default/packages.idx
===> Plugin rebar_covertool not available. It will not be used.
===> Command covertool not found
tsloughter commented 6 years ago

I think this can be closed now? Or are people still having issues using with rebar3?

tsloughter commented 6 years ago

Looks like the rebar2 part of this plugin may have some issues too, and seems to be a lot of code just for supporting rebar2.

Wondering if it may be worth just removing rebar2 support.

nalundgaard commented 6 years ago

I also agree this should be closed. A separate issue could be filed for retiring rebar2 support, but it seems mostly harmless.