[erlang-questions] Best way to integrate QuickCheck and rebar

Tim Watson watson.timothy@REDACTED
Tue May 31 11:02:00 CEST 2011


On 30 May 2011 19:48, Francis Joanis <francis.joanis@REDACTED> wrote:
> Hi,
>
> I am new to both rebar and QuickCheck and I'm looking for a way to have
> rebar invoke my QuickCheck tests. The only thing I've found so far is to
> have an eunit test invoke QuickCheck from within its test.
>
> What would be the best way to achieve this?

Embedding your PropEr/QuickCheck tests in eunit and/or common_test
suites is the best thing to do right now, because both these options
afford you test+main code compilation support, code coverage and test
report generation. There is no direct way to run PropEr/QuickCheck
properties with rebar, and whilst it's possible to write a plugin to
do this, there's quite a lot of work involved (take the rebar_eunit
module as an example of what needs to be done).



More information about the erlang-questions mailing list