lauramcastro / readspec

ReadSpec application: making PBT easier to read for humans
MIT License
4 stars 1 forks source link

readSpec

readSpec: making PBT easier to read for humans.

dependencies

In order to use readSpec you need a Quviq QuickCheck licence. The ci branch of this repository is integrated with QuickCheck-CI.

Build Status

compiling & running

Just clone the repository and execute:

make && ./run

You should then see an erlang shell in which you can try the examples provided in the priv folder.

Enjoy! And do not forget that comments & bug reports, as well as contributions, are welcome!

troubleshooting

You can enable some debugging messages by commenting out the following line in the include/readspec.hrl file:

-define(DEBUG(IOString, Args), ok).

and uncommenting the following one:

-define(DEBUG(IOString, Args), io:format(IOString, Args)).

You can slightly alter the output format (i.e. line length) by modifying the PRETTYPR_OPTIONS macro in that same file:

-define(PRETTYPR_OPTIONS, [{encoding, utf8}, {paper, 120}, {ribbon, 120}]).

where acceptable options are those described for the format/2 function in the erl_prettypr module.