kellymclaughlin / rebar3-eqc-plugin

A rebar3 plugin to enable the execution of Erlang QuickCheck properties
Apache License 2.0
13 stars 20 forks source link

can't run eqc tests with lager enabled project #20

Open Licenser opened 8 years ago

Licenser commented 8 years ago

This is a bit of a odd one and I'm not exactly sure where to start debugging this, I got a project that uses lager as a logger, and has lager transform as an option. compiling EQC tests now results in this error:

eqc/qry_parser_eqc.erl:none: undefined parse transform 'lager_transform'

I suspect it has to do with taking over the erl opts from the main project but not including the needed dependencies but that's more of a blind guess.

Licenser commented 8 years ago

This seems to be the root of the problem:

https://github.com/kellymclaughlin/rebar3-eqc-plugin/blob/master/src/rebar3_eqc.erl#L282

it uses the erl_opts of the full project to compile (by that including lager transform) but does not include the dependent apps so lager transform can't be resolved.

Licenser commented 8 years ago

this seems to be a regression in rebar3, it works with 3.0.0 but not 3.2.0