couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <>
Subject Re: escript tests
Date Mon, 27 Sep 2010 14:13:27 GMT
On Mon, Sep 27, 2010 at 2:17 AM, Andrey Somov <> wrote:
> Hi all,
> I like CouchDB and I would like to read its source to understand it better.
> While reading the code I have already discovered places where it can
> be improved (

thanks for this.

> I find it very helpful to run and debug tests.

the tests pass for me, i run them like this from the source directory
(make sure couchdb is not running)

`make check`

There is also a way to run them individually. I don't recall it from
the top of my head.

Another resource you should look into is the #couchdb room on

It is a great place to get answers to development questions


> 1. Some test fail - I get endless loop. Are the escript  tests
> maintained ? (If yes I will try to find out what is wrong with my
> setup)
> 2. '020-btree-bacisc.t' test only works with big lists. When the
> rows() method returns less then 40 then the test fail. Does it mean
> that the BTree does not work with small portions of data ? May the
> test be changed (or added) to be able to process 3-5 values because it
> would be much more convenient to follow the execution with the
> debugger ?
> 3. If I find a place where the code may be improved shall I first
> raise a question in this list or should I create an issue with a patch
> and an explanation ?
> --
> Andrey

Chris Anderson

View raw message