Browse files

Add a note for PropEr invocation from EUnit

Closes #49
  • Loading branch information...
motiejus committed Oct 17, 2012
1 parent 8f09ee5 commit f931688605f6607b7ade83a6d576df24225570e2
Showing with 14 additions and 0 deletions.
  1. +14 −0
@@ -107,6 +107,18 @@ Quickstart guide
+A note about running PropEr from EUnit
+[EUnit captures standard output][eunit stdout], so normally PropEr output is
+not visible when `proper:quickcheck()` is invoked from EUnit. You can work
+around this by passing an `{to_file, user}` to `proper:quickcheck/2`. For
+ ?assertEqual(true,
+ proper:quickcheck(your_module:some_property(), [{to_file, user}]).
+This will make PropEr properties visible also when invoked from EUnit.
Where to go from here
@@ -143,3 +155,5 @@ known incompatibilities:
* PropEr handles `size` differently from QuickCheck.
* `proper:module/2` accepts options in the second argument instead of the
first; this is for consistency with other `module/2` functions in Erlang/OTP.
+[eunit stdout]:

0 comments on commit f931688

Please sign in to comment.