couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: How to run a single etap test, and how to see io:format()
Date Mon, 27 Jun 2011 11:34:30 GMT
On Mon, Jun 27, 2011 at 7:16 AM, Andrey Somov <trophybase@googlemail.com> wrote:
> Hi all,
> I wanted to know how couch_key_tree:merge() works running 060-kt-merging.t
> from trunk.
>
> While looking in the documentation I could not find the answer to a couple
> of questions:
>
> 1) How can I see the outcome of io:format() in a etap test ?
> 2) how can I run a single etap test ?
>
> Thank you,
> Andrey
>

The answer to both is:

$ ./test/etap/run test/etap/060-kt-merging.t

Also, you don't want to use io:format in the test because that'll mess
with the TAP protocol. Though you can simply swap it out with
etap:diag(Fmt, Args) to keep things working.

Mime
View raw message