blob: 7e869c992b2c334e4f0fa4d2d32b13e88bdb3c18 [file] [log] [blame]
@author Kresten Krab Thorup <krab@trifork.com>, Triq Authors
@copyright 2010-2013 Trifork A/S, 2013-2018 Triq Authors
@doc Triq is a QuickCheck library for Erlang that works similar to PropEr and
QuviQ eqc. The easiest way to integrate it in your tests is to write properties
as you're used, replace the header include with that of triq, and either use <a
href="https://erlang.mk/guide/triq.html">the Triq plugin for erlang.mk</a> or
add the <tt>-triq(eunit).</tt> attribute in the module. The latter will generate
the needed EUnit glue in order to test the properties anytime you run EUnit. If
you use <tt>-triq({eunit, [{runs, N}]})</tt>, then Triq will do <tt>N</tt> runs
for each property in the module, which is equivalent to calling
<tt>triq:check(Module, N)</tt>. This can be useful to make Triq try more (or
less) cases than the default.