couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendall Cada <wenda...@apache.org>
Subject Re: Javascript Test Suite
Date Wed, 27 Mar 2013 21:33:17 GMT
On 03/27/2013 02:14 PM, Benoit Chesneau wrote:
> On Wed, Mar 27, 2013 at 10:05 PM, Wendall Cada <wendallc@apache.org> wrote:
>> In 1.3.0, there is a new part of the test suite to run the javascript tests
>> from the command line. I'm running into various issues on different
>> hardware/OS configurations. Mostly, tests hanging or timing out and failing.
>> These are really hard to troubleshoot, as they all pass just fine if run
>> individually.
>>
>> What I'm experimenting with today is rewriting how the tests are implemented
>> to be run one at a time from a loop in bash, versus a loop in javascript. I
>> think the failures I'm running into are improper setup/teardown. There may
>> be an issue with rapid delete and adding a db, or rapidly starting and
>> stopping couchdb, but I think this is not what's happening in my failures.
>>
>> The nature of spidermonkey doesn't allow for spawning threads, or
>> sandboxing, etc, so it's hard looking at the test suite to see how I can
>> improve running all tests. I think it's far better to have the setup spawn a
>> new interpreter for each test. Tear down will kill the interpreter.
>>
>> Wendall
> xargs could probably help there to spawn multiple worker to run tests
> in // . But I think that at some point it would be better to run all
> our tests suite in Erlang. And for edge cases using something like
> phantomjs.
>
> - benoƮt
This is exactly my line of thinking as well. For now, I just want 
something I can troubleshoot the failures with. The current setup 
doesn't lend itself well to debugging.

Wendall

Mime
View raw message