Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
note on planned unit testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Newson committed May 4, 2009
1 parent 17d02ea commit 04d57bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions TESTS
@@ -0,0 +1,13 @@
Tests that need to be automated. This are required for 0.3 release.

All tests require couchdb to be running and all tests delete and create a database called test_lucene at startup.

1) add a normal document - verify no index is built.
2) add a design document with simple fulltext function, add a normal document, verify it's searchable.
3) same as 2 but for 1000 documents.
4) same as 3 but verify sort= parameter.
5) include_docs=true
6) rewrite=true
7) defaults { "store":"yes" }, verify stored value is retrieved.
8) verify noargs gives index info.
9) add attachment, verify text extraction.
4 changes: 2 additions & 2 deletions src/main/java/com/github/rnewson/couchdb/lucene/Config.java
Expand Up @@ -42,9 +42,9 @@ final class Config {

static final String INDEX_DIR = System.getProperty("couchdb.lucene.dir", "lucene");

static final int RAM_BUF = Integer.getInteger("couchdb.lucene.ram", 256);
static final int RAM_BUF = Integer.getInteger("couchdb.lucene.ram", 64);

static final int BATCH_SIZE = Integer.getInteger("couchdb.lucene.batch", 1000);
static final int BATCH_SIZE = Integer.getInteger("couchdb.lucene.batch", 250);

static final String DB_URL = System.getProperty("couchdb.url", "http://localhost:5984");

Expand Down

0 comments on commit 04d57bd

Please sign in to comment.