couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad Anderson (JIRA)" <>
Subject [jira] Created: (COUCHDB-384) [PATCH] Improvements to couch_config for unit testing purposes
Date Tue, 16 Jun 2009 16:53:07 GMT
[PATCH] Improvements to couch_config for unit testing purposes

                 Key: COUCHDB-384
             Project: CouchDB
          Issue Type: Improvement
          Components: Database Core
    Affects Versions: 0.9
            Reporter: Brad Anderson
            Priority: Minor

To be able to run unit tests involving configuration (i.e. couch_config module), two changes
are proposed:

1.  The ability to start the couch_config gen_server with no .ini files in start_link/1. 
This means that CouchDB doesn't even need to be running for tests to be performed.  The caller
of set/4 needs to use 'false' as the Persist argument, but this is probably desirable when
running unit tests.  

2.  The ability to shut down the couch_config gen_server is necessary for proper cleanup after
the tests are run.

The attached patch solves both issues.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message